[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 580
  • Last Modified:

JFree charting time axis label date value for short time interval

In the JFree Chart, using the Time series data I am plotting values against epoch(time), when the time is more than a day, date is displayed in the marker/label. I would like to display date values even if the min and max for the time axis falls within a single day / 24 hours.
In short I am looking for a way to force the lablels to always display the date and time togather.

1 Solution
try this to set the format to use:

axis.setDateFormatOverride(new SimpleDateFormat(".......


Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now