jacquiline
Posts: 2
Joined: Wed Feb 17, 2021 3:36 pm

Exported csv has zero in Category column

The x-axis of my Highchart has no categories . So, when I export it to csv I see a Category column with a zero in it. Is there a way to completely avoid the Category column or at least to not show the zero value? [img]C:\Users\jjaison\Desktop\images[/img]
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Exported csv has zero in Category column

Hello jacquiline!

Welcome to our forum and thanks for contacting us with your question!

Here you've got an example demo of exporting the chart: https://jsfiddle.net/gh/get/library/pur ... ta-labels/

Could you tell me precisely how would you like the chart to look like after export? The image would be very helpful here. Unfortunately, the one you've posted didn't load properly.

We can set all the options of exporting chart here: https://api.highcharts.com/highcharts/exporting

Best regards!
Dominik Chudy
Highcharts Developer
jacquiline
Posts: 2
Joined: Wed Feb 17, 2021 3:36 pm

Re: Exported csv has zero in Category column

Somehow I am unable to upload images correctly.. I Just want to not show the first column i.e; the Category column in the csv export when the x-Axis Categories is undefined or an empty array.
dominik.c
Posts: 2081
Joined: Fri Aug 07, 2020 7:07 am

Re: Exported csv has zero in Category column

Hi again!

When the categories array is empty or undefined we've got numbers as x axis labels. Do you want that or do you want to erase totally labels on xAxis?

Demo with an empty categories array:
https://jsfiddle.net/BlackLabel/2ozur174/

Demo without xAxis labels:
https://jsfiddle.net/BlackLabel/8ebk107r/

Best regards!
Dominik Chudy
Highcharts Developer

Return to “Highcharts Stock”