I am wondering if there is a way to add information to a chart when it is initialized?
For example :
var stackChart = new CanvasJS.Chart(“<SUB containerName>”, {
exportFileName: “StackByProject”,
myVariable: {information about chart},
…
I have added an option to the export toolbar using :
var toolBar = document.getElementsByClassName(“canvasjs-chart-toolbar”)[0];
I have a dashboard of charts (each of which use this option) and want to have information about each so that I know what is selected when they choose a particular chart. I am using exportFileName right now but would like to have something a bit more complicated. I suppose I could push information to a separate array or something with reference to unique chart names, but would like to know if this is possible.