@malvika,
You can reset the axis range programmatically by setting viewportMinimum & viewportMaximum to null. Please refer to the code-snippet below which shows how to reset the axis range on button click.
document.getElementById("resetChart").addEventListener("click", function() {
chart.axisX[0].set("viewportMinimum", null, false);
chart.axisX[0].set("viewportMaximum", null);
});
Please take a look at this JSFiddle for complete code.
—
Vishwas R
Team CanvasJS