Export Chart to CSV issue

Hello Team,

I am using Syncfusion Chart 24 Version i.e latest version, and i am trying to use export functionality but facing issue after exporting.
the data in CSV format is getting duplicated in exported file.
for reference
Image_8912_1704695753476

Chart :
Image_7305_1704695783606


Code Snippet: 

this.chartComponent.exportModule.export('CSV', 'export')


Please reply as soon as possible.
Thanks ,
Sourabh


3 Replies

DG Durga Gopalakrishnan Syncfusion Team January 9, 2024 03:09 PM UTC

Hi Sourabh,


Greetings from Syncfusion.


We have ensured your reported scenario in latest version 24.1.45. The exported data in CSV format is displayed properly. Please check with the below sample.


@ViewChild('chart')

public chart: ChartComponent;

export() {

    this.chart.exportModule.export('CSV', 'export');

}



Sample : https://stackblitz.com/edit/angular-qy88va


If you are still facing problem, please try to replicate an issue in above sample or share us issue reproduced sample to validate this case further from our end. Kindly revert us if you have any other concerns.


Regards,

Durga Gopalakrishnan.



SS Sourabh Sharma January 17, 2024 07:07 AM UTC

Hello Team ,  

I am notifying you that I have conducted debugging on the internal code, and I am encountering difficulty in understanding why the axisCollection is returning two arrays within the internal code. During the creation of the workbook, there seems to be a loop in the axisCollection that is pushing data into the workbook. I am attaching a screenshot of the debugging code for your reference.

.
image


image

and also i have debug your sample code and in that axisCollection is single array with multiple series . 
So why this two different way of internal code 
Image_7590_1705475134255

Please help me fix the problem I described earlier. I haven't added any extra code for exporting the chart, so I'm looking for a solution without making any additional changes.


Thanks, 
Sourabh










NP Nishanthi Panner Selvam Syncfusion Team January 18, 2024 12:59 PM UTC

Sourabh,


We have analyzed your reported scenario by creating sample as per your shared image. The exported data in CSV format is displayed properly. Additionally, we have also ensured by exporting chart with multiple axes, exported data is proper as per behavior.


We have attached sample, screenshot for your reference.


Screenshot:


Chart with single axis

Exported CSV image


Chart with multiple axis

Exported CSV image


Chart with single axis: https://stackblitz.com/edit/angular-qy88va-7tgnl8?file=src%2Fapp.component.html

Chart with multiple axis: https://stackblitz.com/edit/angular-yesv78-xhnvyz?file=src%2Fapp.component.html


Since we are unable to replicate an issue from our end, we request you to share the following information which will be helpful for further analysis and provide you the solution sooner.

  • Try to reproduce the reported scenario in above sample.
  • Please share your sample (or) code snippet with full configurations.


Regards,

Nishanthi


Loader.
Up arrow icon