Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#370 Add setLocale method to DateAxis

None
accepted
David Gilbert
None
5
2014-03-10
2009-08-25
Lucian Chirita
No

org.jfree.chart.axis.DateAxis only takes the locale as constructor argument, and it's not possible to change it after the axis has been created. So if you create a chart via ChartFactory, you won't be able to set the locale for the date axis (unless you instantiate a new axis object and replace it in the chart).

A setLocale method would make such case much easier. The method would do what the existing setTimeZone method does (i.e. set the locale, call setStandardTickUnits with updated units and send an AxisChangeEvent).

Regards,
Lucian

Discussion

  • David Gilbert
    David Gilbert
    2014-03-10

    This is added for the upcoming 1.0.18 release, better late than never.

     
  • David Gilbert
    David Gilbert
    2014-03-10

    • status: open --> accepted
    • assigned_to: David Gilbert
    • Group: -->