autoscale chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
javirinaldi
Posts: 2
Joined: Tue Aug 28, 2018 7:44 pm
antibot: No, of course not.

autoscale chart

Post by javirinaldi » Tue Aug 28, 2018 7:56 pm

Hi! I'm using the jfreechart to generate graphics of real time data's sensors. I'm using the timeseriescollection but i'm having troubles with the Y axis scale. Sometines the value of one (there are 6 sensors) sensor and when the value is near to 0 again, the scale remains at the high value. I need it to go back to a smaller scale, but i can't find any method. Anyone has an idea how can i do it? Thanks!

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: autoscale chart

Post by John Matthews » Wed Aug 29, 2018 3:55 am

Verify that your code is correctly synchronized.

javirinaldi
Posts: 2
Joined: Tue Aug 28, 2018 7:44 pm
antibot: No, of course not.

Re: autoscale chart

Post by javirinaldi » Wed Aug 29, 2018 5:27 pm

It is synchronized, the problem is that if all my sensors have values around 5-10 for example, and one goes to 1500 and goes back to 10. Then i can't see the nexts peaks in the signal, because the Y axis's scale remains around 1700. I need the axis to reescale around 20 again (like was at the beginning).

John Matthews
Posts: 513
Joined: Wed Sep 12, 2007 3:18 pm

Re: autoscale chart

Post by John Matthews » Wed Aug 29, 2018 6:21 pm

You can control zooming and panning with the mouse, as suggested here, or by evoking the desired handlers, as suggested here.

Locked