janseroe
Posts: 3
Joined: Mon Oct 19, 2020 8:50 am

CSV Export doesn't match data in Chart

We have a problem with the Highcharts CSV export. The CSV export returns different data than what is visible in the graph.

The graph is quite complex with many data points and millisecond values.
Here is an excerpt of the data I get output by chart.series.data.options:

x: 1606897123140.2405 // (milliseconds)
y: 319

x: 1606897123150.2566
y: 320

[...]

I also find these values in the graph, along with the other values at this timestamp.

If I output the data directly afterwards via chart.getCSV(), I can't find any of the data I see in the graph there. Instead, the columns are very shifted and partly other timestamps can be seen.
I expected to get exactly the values (only in CSV) that are contained in the graph.

I have attached a sample CSV output and an entry from the chart.series.data array.

Is this a bug? Is it too much data or am I doing something fundamentally wrong? Since we are spending quite a bit of money on the Highcharts license, I expected the CSV output to be what is seen in the graph.

If more information is needed, I will be happy to give it to you.
Attachments
Archive.zip
(31.62 KiB) Downloaded 10 times
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: CSV Export doesn't match data in Chart

Hi,
Thanks for contacting us with your question!

I need to see your chart configuration, could you create a simplified version of your case?
In highstock charts, xAxis is interpreted as dataTime, maybe this is the culprit.

I'm waiting for news from you.
Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Stock”