We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Dynamic chart context menu

Hello Syncfusion team.


Is it possible to add a context menu dynamically to charts?  

I have a dashboard page with 5 charts(SFChart and SFAccumullationChart) and, I would like to add a context menu for those charts. Then, user will be able to export to PDF and PNG using context menu. 

So, the requirement is to have a single context menu across all charts in a single page and when user right-click over a chart, open a context menu and export that chart only.


Thanks

Kleber




3 Replies 1 reply marked as answer

GV Gopalakrishnan Veeraraghavan Syncfusion Team April 24, 2023 02:39 PM UTC

Hi Kleber,


We have analyzed your query. We are rendering five charts with a context menu in the DashboardLayout component. If the 'PNG' option is clicked, the chart's PNG file can be downloaded. We have attached a sample and screenshot for your reference. Please check with below sample.



Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ContextMenu-1954193739.zip


Screenshot:

Graphical user interface, chart, application, pie chart

Description automatically generated


Kindly revert us if you have any concerns.


Regards,

Gopalakrishnan Veeraraghavan


Marked as answer

KB Kleber Bueno June 26, 2023 12:13 PM UTC

Thanks  Gopalakrishnan.


Worked perfectly fine.



JS Jayashree Suresh Anand Syncfusion Team June 27, 2023 06:28 AM UTC

Hi Kleber Bueno,

We are glad that the provided sample worked on your end. Please get back to us if you need any further assistance.

Regards,

Jayashree 


Loader.
Live Chat Icon For mobile
Up arrow icon