@reactdeveloper,
Zoom / Pan & Reset buttons will be shown when you enable zooming in the chart. If you like to enable zooming, show the buttons but disable them, you can set HTML button’s disabled property to true. Please find the code-snippet below.
var buttons = document.getElementsByClassName("canvasjs-chart-toolbar")[0].children;
for(var i = 0; i < buttons.length; i++) {
buttons[i].disabled = true
}
However, if you like to enable zooming but hide the buttons, you can set display: none !important;
to canvasjs-chart-toolbar class. Please take a look at this JSFiddle for an example.
—
Vishwas R
Team CanvasJS