tharini
tharini

Reputation: 15

Changing the scale of yAxis on Highstock to draw plot line

I have a data, say 200, that should be plotted as yAxis line. The default min and max value is set to say 300 and 500 respectively. How can i draw the yAxis plotline dynamically and how to change the scale of yAxis dynamically?

Thanks in advance.

Upvotes: 0

Views: 1892

Answers (1)

Paweł Fus
Paweł Fus

Reputation: 45079

1) To add plotLine use chart.yAxis[0].addPlotLine(object). See docs

2) To change extremes use chart.yAxis[0].setExtremes(min, max). See docs

Upvotes: 1

Related Questions