Forum Replies Created by Greg Aharonian

Viewing 3 posts - 1 through 3 (of 3 total)
  • in reply to: Why dates off by one with tooltips in stock charts? #45080

    Also another oddity:

    My test file: kukaxoco.org/canvas2.html

    opens in Firefox, but not in Safari or Chrome.

    Greg

    in reply to: Why dates off by one with tooltips in stock charts? #45079

    Also another oddity:

    My test file: kukaxoco.org/canvas2.html

    opens in Firefox, but not in Safari or Chrome.

    Greg

    in reply to: Why dates off by one with tooltips in stock charts? #45078

    The solution offered in the JSFiddle example does not work.

    For the code I have created: http://www.kukaxoco.org/canvas2.html, I am now using the following coding as recommended by the JSFiddle example:

    for(var i = 0; i < data.length; i++){
    dataPoints.push({x: new Date(data[i].date + “T00:00:00”), y: Number(data[i].close)});
    }

    (I also tried hard-wiring the extra text into the JSON file:
    {“date”:”2019-01-01T00:00:00″,”open”:138.78,”high”:138.9,”low”:128.5,”close”:130.53,”volume_eth”:165355.78,”volume_usd”:22097680.63})

    In both cases, the graph displays the correct OHLC for the last day of the file, 2019-01-01, but the tooltip displays as the date: “31 Dec 18”, the trading day before.

    How can this be fixed?

    Greg

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