I've a classic line chart with weekly date for x-axis.
But if I put a lot of values, dates at the bottom are not readable (too close).
$(function () {
$('#container').highcharts({
xAxis: {
tickInterval: 7 * 24 * 3600 * 1000,
type: 'datetime',
labels: {
format: '{value:%d/%m/%Y}',
rotation: -45,
y: 30,
align: 'center'
}
},
plotOptions: {
series: {
pointStart: Date.UTC(2012, 4, 4),
pointInterval: 7 * 24 * 3600 * 1000
}
},
series: [{
data: [29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4, 29.9, 71.5, 106.4]
}]
});
Do you know if it's possible to have a intelligent distribution of these values? When they are too close, just display one on two for example.
Thanks.