Home › forums › Using CanvasJS › Candlestick Chart doesn't work with DataPoints
This topic contains 1 reply, has 2 voices, and was last updated by Vishwas R 8 months ago.
im very new to your Library and i just started with it.
I’ve created the following Fiddle for you: https://jsfiddle.net/14sg1c4h/
I try to create a CandleStick Chart with Data from a Web API(YOu can find the Link on the Fiddle).
For the Date & Time Formats i am using “Moments.js” its a easy library to convert to the needed Formats, but it looks like that “x: new Date(time)” isnt working correctly – I allways get “DD-MMM” as Day on the Chart.
The next Thing is that i dont get any Candle Data on the Chart
The O,H,L,C is built like you mentioned in your Documentation – would really appreciate if you could gimme a hint, whats wrong with my script.
thanks in advance and best regards
You can use valueFormatString to format values (date in your case) that appear on axis labels. Please take a look at this updated jsfiddle.
You must be logged in to reply to this topic.