We're using Highcharts to display electricity prices.
Problem is, when we only have one data point on chart, it is aligned in the middle.
Is it possible to make it start from left, not in the middle?
Is there an option to make it start from left?
Code: Select all
$(function () {
$('#container').highcharts({
chart: {
},
xAxis: {
categories: ['Jan']
},
plotOptions: {
series: {
dataLabels: {
align: 'left',
enabled: true,
rotation: 270,
x: 2,
y: -10
}
}
},
series: [{
data: [29]
}]
});
});
Thank you!