TimeSeries chart auto restart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
JavaGui
Posts: 4
Joined: Wed Jun 08, 2016 6:50 am
antibot: No, of course not.

TimeSeries chart auto restart

Post by JavaGui » Sat Jun 25, 2016 8:32 am

Hi !

I am using time series chart in my project.

As user use mouse wheel to zoom in or zoom out, graph scrolling will stop & user can use zoom in or zoom out.

In background graph is updating. When user will move mouse from right to left then it start again scrolling.

Till here everything is perfect.

My question if user forget to move mouse from right to left, is there any timeout option is available to scroll graph automatic when timeouts?

Thanks

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

Re: TimeSeries chart auto restart

Post by John Matthews » Sat Jun 25, 2016 6:09 pm

ChartPanel::restoreAutoBounds, seen here, "Restores the auto-range calculation on both axes." Invoke it in the ActionListener of a Swing Timer that has the desired timeout.

JavaGui
Posts: 4
Joined: Wed Jun 08, 2016 6:50 am
antibot: No, of course not.

Re: TimeSeries chart auto restart

Post by JavaGui » Sun Jun 26, 2016 6:51 am

Dear Sir,

Thanks for help.
Now I have idea to solve problem.

I have one more question if you help me.

I have enable tooltip in my graph & working.

Problem is tooltip sensing point is tool small ?

Is it possible to increase area to sense mouse location, to enable tool tip ?

Thanks

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

Re: TimeSeries chart auto restart

Post by John Matthews » Mon Jun 27, 2016 4:54 am

One approach is to specify a larger Shape, for example, using setSeriesShape, as suggested here.

Locked