Home › Forums › Chart Support › How to Create a 1:1 Ratio Scale Chart in Canvasjs › Reply To: How to Create a 1:1 Ratio Scale Chart in Canvasjs
Setting axisY viewportMinimum & viewportMaximum same as axisX in rangeChanged event-handler should work in your case. Please find the code-snippet below.
e.chart.axisY.set("viewportMinimum", e.axisX.viewportMinimum, false);
Please take a look at this JSFiddle for a working example.