Home › forums › Using CanvasJS › How to hide the secondary graph but not the axis label › Reply To: How to hide the secondary graph but not the axis label
The issue you are facing is due to the interval, minimum and maximum thats being set to axis even when dataSeries are hidden. In this scenario, you may need to reset interval and range of axisY and axisY2 by setting them to null – when the dataSeries becomes visible. Please take a look at this updated JSFiddle.
The code that was shared previously was to help you towards solving your requirements. You can further modify code as per your requirement.