#370 Add setLocale method to DateAxis

None
closed
None
5
2014-07-29
2009-08-25
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: -->
     
  • simon04

    simon04 - 2014-07-26

    I guess this can be closed, see r3106.

     
  • David Gilbert

    David Gilbert - 2014-07-29

    Closing.

     
  • David Gilbert

    David Gilbert - 2014-07-29
    • status: accepted --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks