Manoj Mohan,
Thank you for your reply. The example you provided confirms that document.getElementsByClassName("canvasjs-chart-toolbar")[0]
is used as an array.
I noticed this works similarly through CSS as:
/* change style of toolbar button */
.canvasjs-chart-toolbar button {
width: 100px !important;
border: 1px solid black !important;
}
/* this css hides or displays multiple menu choices -
0 = print, jpeg, png, 1 = jpeg, png, 2 = print, png, 3 = print, jpeg, 4 = 0 */
.canvasjs-chart-toolbar div>div:nth-child(3) {
display: none !important;
}
The functions are also a good example but as I set a string using php for the filename with
exportFileName: “$stg” .
I do not know how the functions can be modified for that as they use filename numerous times.