Solved

JFreeChart: Time Series Chart

Posted on 2011-09-26
2
283 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

806 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