Fleet: How to keep the x and y axes at the same scale?
1 answer
I had to do something like this and this was my first test: fiddle
The main thing is that you set the max values for the axis to the same ratio as the width and height of your placeholder separator:
options.xaxes[0].max = options.yaxes[0].max * $('#ph').width() / $('#ph').height();
$.plot($('#ph'), data, options);
+1
source to share