문제

I'm trying to make a candle-stick chart with Highcharts but I can't get the 'minute' and 'day' timespans to work. They're greyed out as if disabled. Here's a quote from their documentation.

Defines the timespan, can be one of 'millisecond', 'second', 'minute', 'day', 'week', 'month', 'ytd' (year to date), 'year' and 'all'.

I've got all other types working, so it's not that I don't understand the code, I even tried replacing it with 3600000 milliseconds but the result is the same. I'm thinking maybe there's a minimum value for it to work, but I haven't found anything about that in the documentation.

Please help me figure this out.

Edit: As requested in the comments here's an example of the issue: http://jsfiddle.net/UT2tr/

도움이 되었습니까?

해결책

You need to set minRange http://jsfiddle.net/UT2tr/1 but as I see your data is each day, not hour so for 1h you will have empty chart.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top