rie_f
Posts: 3
Joined: Wed Jun 10, 2020 8:12 am

If the x-axis of export is not the time axis

When exporting, it becomes datetime type.
I want to change the title of the x-axis and output numerical values ​​1, 2 ...

https://jsfiddle.net/rie_fujii/wnhzjyet/8/

chart context menu > 'myCSV'

"DateTime","Series 1"
"1970-01-01 00:00:00",29.9
"1970-01-01 00:00:00",71.5
"1970-01-01 00:00:00",106.4
"1970-01-01 00:00:00",129.2
"1970-01-01 00:00:00",144

"AAA","Series 1"
1,29.9
2,71.5
3,106.4
4,129.2
5,144


# I am in English with a translation tool. I'm sorry it's not the correct sentence.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: If the x-axis of export is not the time axis

Hi,
We appreciate you reaching out to us!

I think you need to set exporting.csv.dateFormat to know which date format use when you exported.

Live demo exporting data to CSV:
https://jsfiddle.net/BlackLabel/8hga91wp/

API References:
https://api.highcharts.com/highcharts/e ... dateFormat

Let me know if was that were you looking for.
Bet regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Stock”