Reputation: 425
How can we format dates in to this format
Right now it is like this:
xAxis: {
type: 'datetime'
}
Upvotes: 1
Views: 80
Reputation: 36703
I just changed the code of your xAxis
Here it is :
xAxis: [{
type: 'datetime',
labels: {
formatter: function() {
return Highcharts.dateFormat('%e', this.value);
}
},
tickInterval: 1 * 24 * 3600 * 1000
},
{ lineWidth: 0,
minorGridLineWidth: 0,
lineColor: 'transparent',
minorTickLength: 0,
tickLength: 0,
type: 'datetime',
labels: {
formatter: function() {
return Highcharts.dateFormat('%b', this.value);
}
},
tickInterval: 30 *24 * 3600 * 1000
}]
For details follow this jsFiddle Link http://jsfiddle.net/3nLmxs89/1/
Upvotes: 1