Home › Forums › Chart Support › canvasjs-chart-toolbar menu dom › Reply To: canvasjs-chart-toolbar menu dom
@xmanhattan,
You can get the chart toolbar reference using document.getElementsByClassName("canvasjs-chart-toolbar")[0]. You can add extra options like ‘Export as PDF’ or pass url under it to the obtained toolbar reference. Also, please take a look at this JSFiddle for an example where “Export as CSV” feature is added to the toolbar.
document.getElementsByClassName("canvasjs-chart-toolbar")[0]
—- Manoj Mohan Team CanvasJS