angular2-highcharts icon indicating copy to clipboard operation
angular2-highcharts copied to clipboard

How to draw a candlestick chart?

Open hoangnguyen208 opened this issue 7 years ago • 2 comments

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.

hoangnguyen208 avatar Jan 16 '18 08:01 hoangnguyen208

following.......same issue

malik9353 avatar Feb 28 '18 18:02 malik9353

@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?
],
[],
...
]

r-havelka avatar May 15 '18 21:05 r-havelka