Accumulation chart Export

HI, 

We are triying to export an accumulation chart (PDF, JPEG) as is explained in the documentation but it doesn't work.

This is what we tried:

  this.$refs.myAccumulationChart.ej2Instances.exportModule.export("PDF", "myGraphName")
  this.$refs.myAccumulationChart.ej2Instances.exportModule.export("JPEG", "myGraphName")


In this case we obtain an error because exportModule doesn't exists in accumulation charts dislike in the normal charts where it exists an works properly

Then, as is explained in the documentation we tried this

  this.$refs.myAccumulationChart.export("PDF", "myGraphName")
this.$refs.myAccumulationChart..export("JPEG", "myGraphName")


https://ej2.syncfusion.com/vue/documentation/accumulation-chart/chart-print/#export

In this case no errors are obtained but it does nothing. We have found that the example showed in the link above does not work either.


Could you help us?

Thank you in advance for your response and regards

Gaspar



3 Replies

SB Swetha Babu Syncfusion Team March 28, 2022 11:11 AM UTC

Hi Gaspar, 

Greetings from Syncfusion. 

We can export the Accumulation Chart component by using the export method in Chart component and inject the Export module by using the provide. However, we will change the same in our Vue document and it will be included in our weekly patch releases. Please find the below sample link for your sample reference. 


Code Snippet: 
provide: { 
        accumulationchart: [PieSeries, Export
  }, 

Kindly, revert us if you have any concerns. 

Regards, 
Swetha


GB Gaspar Blein March 28, 2022 01:41 PM UTC

Hi,  Swetha


Thank you for your answer. We made the changes and now is working well.


Regards

Gaspar



SB Swetha Babu Syncfusion Team March 29, 2022 07:27 AM UTC

Hi Gaspar,


Most Welcome! Please get back to us if you have any concerns.


Regards,

Swetha


Loader.
Up arrow icon