1

I am working on real time data stream with spline chart https://www.highcharts.com/demo/dynamic-update/dark-green. Here i want to set fixed y-axis scale (I know my data range from 0 to 4 max) but here chart update dynamically.

spline chart update every second

Is it possible to set fixed y-axis so that chart update as per fixed y-axis scale.

U rock
  • 717
  • 2
  • 13
  • 32

1 Answers1

0

For any axis you can set a minimum and a maximum value with axis.min (doc) and axis.max (doc). If you want to be very precise (or your ticks are causing problems) you might have to disable startOnTick and endOnTick to set your specific values, as described in the documentation of min and max.

For example (JSFiddle demonstration):

yAxis: {
    min: 0.25,
    max: 0.75,
    startOnTick: false, // optional
    endOnTick: false, // optional
    // ...
}
Halvor Holsten Strand
  • 19,829
  • 17
  • 83
  • 99