JuliaS
JuliaS

Reputation: 65

Highstock xAxis scaling

I'm having the same problem explained in Format Highcharts xAxis for stock data problem when using the Highstock library when the candlestick type is used.

using the same solution described there does not solve the problem with the Highstock library (although both libraries are built around the same principle from the same developer).

Upvotes: 2

Views: 966

Answers (1)

Samara
Samara

Reputation: 387

You need to set the "max" property on xAxis, since this is a timeline series it needs to be of a datetime type.

Here is a jsfiddle example of a random stock in the US market, starting at 9:30 , xAxis max needs to be set to 9:30 + 6.5 hours

http://jsfiddle.net/eUtDD/

max: first time stamp in the series + length

so

max: 1320658200000 + (3600000 * 6.5)

Upvotes: 1

Related Questions