diff --git a/packages/standard-components/src/Chart/CandleStickChart.svelte b/packages/standard-components/src/Chart/CandleStickChart.svelte index 7854b495f8..c034855e5e 100644 --- a/packages/standard-components/src/Chart/CandleStickChart.svelte +++ b/packages/standard-components/src/Chart/CandleStickChart.svelte @@ -59,8 +59,9 @@ .xType("datetime") // Add data + const parseDate = d => (isNaN(d) ? Date.parse(d).valueOf() : parseInt(d)) const chartData = data.map(row => ({ - x: row[dateColumn], + x: parseDate(row[dateColumn]), y: [row[openColumn], row[highColumn], row[lowColumn], row[closeColumn]], })) builder = builder.series([{ data: chartData }])