Home › forums › Using CanvasJS › Pan button › Reply To: Pan button
But now because of this code after i hit Pan button it also redraws the whole chart. Is it possible to change Pan button configuration or at least remove Pan button from chart without interfering with your code
Pan & Zoom buttons are one and the same – button’s text and functionality changes depending on the state. Hence via the API you can totally disable the zoom/pan feature or will to have both.
But you might be able to work around it by setting display: none !important; for pan button. Pan button is the first-child of a div with class “canvasjs-chart-toolbar”
Here is a jsfiddle that hides pan/zoom button in chart.