remove([Boolean updateChart = true])

Removes specified axis from axis Array.

Parameters:
        updateChart: When true, updates the chart automatically after removing axis. Defaults to true.

Example:
        chart.axisX[1].remove();
Note:
  • Chart should be rendered before you can use this method.
  • Doesn’t work on default axis.
var  chart = new  CanvasJS.Chart("container",
{
     .
     .
     .
});
chart.render();
chart.axisX[1].remove();
Try Editing The Code

  Also See:    


If you have any questions, please feel free to ask in our forums.Ask Question