Hi All,
I am using the TimeSeries chart, where my hour is coming as 0-23 hours as input. But when displaying it in the chart I want it to be displayed in the -12 hour format with AM and PM displayed
How can I go about it
Regards,
Narayan
Display AM / PM when displaying the date.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Using the setDateFormatOverride() method in the DateAxis is the simplest option, although it's the least flexible if your tick size is dynamic. The other option is to define your own set of standard tick units for the axis.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

