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