Home › forums › Chart Support › Candlestick Chart doesn't work with DataPoints
Hi together,
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
@drtrilogy,
We observe that the date-time format you are using is not a valid one. Please refer this link for valid JavaScript date-time formats.
You can use valueFormatString to format values (date in your case) that appear on axis labels. Please take a look at this updated jsfiddle.
— Vishwas R Team CanvasJS
You must be logged in to reply to this topic.