JFree charting time axis label date value for short time interval

Posted on 2009-02-19
Last Modified: 2013-11-13
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.

Question by:parallel_mis
    1 Comment
    LVL 92

    Accepted Solution

    try this to set the format to use:

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


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    This is about my first experience with programming Arduino.
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now