This is a demo tutorial. While there is no step-by-step commentary available (yet), the live demo below is fully functional. Feel free to open it for full source code.
This demo shows how you can use chart's API to toggle axis ranges on and off .
See the Pen amCharts 4: Togglable event markers using axis ranges by amCharts team (@amcharts) on CodePen.24419