Home Forums Report Bugs Candle Chart Date issue

Candle Chart Date issue

Viewing 4 posts - 1 through 4 (of 4 total)
  • #15766

    Hello guys,

    I am evaluating CanvasJS for our web portal.

    My date range starts from new Date(2012,01,03) and end on new Date(2017,08,04)

    However, when moving the mouse on the screen it reports dates from Feb 01 2012 to 04 Sept 2017.

    Please see http://jsfiddle.net/lucidtrend/m3gh8zut/

    Issue 1… It looks like a month is being added in the programming script.
    Issue 2… Zoom does not recalculate AxisY

    Suggestion 1…x: as an integer array and and Y: [ date, open, high, low, close] structure may provide the same functionality as other charts your have. Handle Null value, or do not print missing value.

    I am aiming to achieve http://www.lucid-trend.com/INTRO/1_5.png this type of charts using canvasJS

    Kind regards

    Raj

    #15772

    Raj,

    In JavaScript Month starts from 0 (January) and ends at 11(December). So while displaying they are incremented by 1.

    Thanks for reporting the issue regarding the miscalculation of the axisY on zooming. We are looking into the issue. We will get back to you at the earliest.

    ________
    Indranil Deo,
    Team CanvasJS

    • This reply was modified 6 years, 8 months ago by Indranil.
    #15779

    So, when the date is supplied in the following format, is my understanding correct?

    new Date(2012,01,03)
    Year – literal value as defined
    Month – array value
    day – literal value?

    How can one supply date from a CSV file?

    date,open,high,low,close,volume
    06/30/2017,7.12,7.75,7.12,7.27,3008035
    07/03/2017,7.40,7.40,7.13,7.25,357902
    07/05/2017,7.22,7.25,6.93,7.11,454012
    07/06/2017,7.07,7.15,6.80,7.00,209038
    07/07/2017,6.93,7.07,6.77,6.85,232499
    07/10/2017,6.83,6.95,6.53,6.81,528326
    07/11/2017,6.82,6.97,6.70,6.93,324509
    07/12/2017,6.91,6.98,6.78,6.84,202546
    07/13/2017,6.88,7.04,6.78,6.97,162635
    07/14/2017,6.92,7.05,6.83,6.99,137126
    07/17/2017,7.06,7.10,6.91,7.00,121249
    07/18/2017,6.94,7.13,6.93,7.02,132814
    07/19/2017,6.96,7.12,6.70,6.91,152268

    #15780

    Raj,

    Please refer this thread.

    _________
    Indranil Deo
    Team CanvasJS

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.