Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to draw a candlestick chart? #252

Open
hoangnguyen208 opened this issue Jan 16, 2018 · 2 comments
Open

How to draw a candlestick chart? #252

hoangnguyen208 opened this issue Jan 16, 2018 · 2 comments

Comments

@hoangnguyen208
Copy link

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.

@malik9353
Copy link

following.......same issue

@r-havelka
Copy link

r-havelka commented May 15, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants