?
Solved

JFreeChart: Time Series Chart

Posted on 2011-09-26
2
Medium Priority
?
289 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 47

Accepted Solution

by:
for_yan earned 2000 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

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month12 days, 7 hours left to enroll

777 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