I am trying to plot a trajectory using Javascript and highcharts, similarly to this minimal example:
$(function () {
$('#container').highcharts({
chart: {
type: 'line'
},
title: {
text: 'PLOT'
},
xAxis: {
title: {
text: 'X'
},
},
yAxis: {
title: {
text: 'Y'
},
},
series: [{
name: 'Trajectory',
data: [[1,2],[5,0],[0,0],[3,4]]
}]
});
});
( http://jsfiddle.net/LLExL/3614/ )
Since the unit for the values on x and y is meters, I would like to scale equally both the axis, otherwise my trajectory will end up being highly distorted (if you're familiar with Matlab, I want to reach the same result as in the 'axis equal' option for the standard matlab 'plot' function:
)
Do you have any ideas on how I can achieve the same result in highcharts? Thank you !