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
Chart :
Code Snippet:
this.chartComponent.exportModule.export('CSV', 'export')
Please reply as soon as possible.
Thanks ,
Sourabh
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.
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.
.
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
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
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.
Regards,
Nishanthi