Centering the chart to the last point value ?

62 views
Skip to first unread message

Jesús TT

unread,
Oct 27, 2016, 10:37:49 PM10/27/16
to Flot graphs
Hi flot friends!

I am discovering flot and I think its the best option for my project.

I need that the flot chart always will have the last point centered to the Y axis with the next script:

http://www.flotcharts.org/flot/examples/realtime/

Any idea? Thank you vey much !


See the attached image with the example that i need:






Jesús TT

unread,
Dec 5, 2016, 7:04:38 AM12/5/16
to Flot graphs
Auto Response: :)

I detect the Y range between y axes max and min
The new min and max for Y will be the last Y value +/- range / 2
  
Reply all
Reply to author
Forward
0 new messages