Manipulate Data after rendering

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
10eputzen
Posts: 4
Joined: Fri Feb 10, 2012 8:48 pm
antibot: No, of course not.

Manipulate Data after rendering

Post by 10eputzen » Fri Feb 10, 2012 9:00 pm

Hey,

I am using the Timeseries Chart, and wonder if it's possible, to edit the values of the chart, after it's beeing rendered. So for example, I want to create an 2 input fields (start, end), so the user can adjust the time period of the x-axis himself, and only observer the values in this specific period of time.
The chart does not have to be rerendered in realtime, but it should show up in the same window after for example a button has been clicked.
I'd be grateful for any advise or piece of code that I could use.

Thanks,
Stefan

gbivins
Posts: 3
Joined: Thu Jul 22, 2010 7:39 pm
antibot: No, of course not.

Re: Manipulate Data after rendering

Post by gbivins » Thu Feb 16, 2012 4:34 pm

You simply need to set the range of the axis you are trying to change:
http://www.jfree.org/jfreechart/api/jav ... %20double)

10eputzen
Posts: 4
Joined: Fri Feb 10, 2012 8:48 pm
antibot: No, of course not.

Re: Manipulate Data after rendering

Post by 10eputzen » Fri Feb 17, 2012 9:14 pm

Yeah thanks, that's what I want. But is it possible to include this function in a button that would appear in the running application?

Locked