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
Solved

JFreeChart: Time Series Chart

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
web application structure 18 99
String array comparison 4 38
jsp insert to database example 2 44
running on tomcat not jboss eap 7.0 3 18
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

840 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