angular2-highcharts
angular2-highcharts copied to clipboard
How to draw a candlestick chart?
I want to change a StockChart from 'line' to 'candlestick', I read the highcharts api library that it' possible, however, I don't know how to implement it by using this library. I tried to change chart: { type: 'candlestick' }
and series: [{ type: 'candlestick' }]
, but both do not work.
following.......same issue
@hoangnguyen208 and @malik9353 did you get your issues solved?
If not, I think the main issue you are facing is how you are setting up your data. If you look at the example on the highstock demo page (https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/stock/demo/candlestick-and-volume/) and do a console.log(data)
you will see it looks like this
[[
0: 1147651200000 // time in milliseconds
1: 67.37 // open
2: 68.38 // high
3: 67.12 // low
4: 67.79 // close
5: 18921051 // volume?
],
[],
...
]