Solved

JFreeChart: Time Series Chart

Posted on 2011-09-26
2
281 Views
Last Modified: 2012-05-12
I want to fix the span of my TimeSeries chart. Regardless of the minimum and maximum values on the time axis (axis), I want the latest 8 hours to be displayed.

If possible, please provide some sample code. Thanks!
0
Comment
Question by:dshrenik
2 Comments
 
LVL 47

Accepted Solution

by:
for_yan earned 500 total points
ID: 36616935
This would be depndent on the dataset you populate - just add the points within latest 8 hours

s2.add(new Minute(0, 3, 7, 12, 2003), 2.0);
        s2.add(new Minute(30, 9, 7, 12, 2003), 1.0);
        s2.add(new Minute(15, 10, 7, 12, 2003), 1.5);

Open in new window

0
 

Author Comment

by:dshrenik
ID: 36714589
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.

746 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

11 Experts available now in Live!

Get 1:1 Help Now