我创建了每日甘特图,但我需要按月计算,任何人都可以给我链接或提供解决方案。
http://jsfiddle.net/highcharts/r6emu/
xAxis: {
type: 'datetime'
},
yAxis: {
tickInterval: 1,
labels: {
formatter: function() {
if (tasks[this.value]) {
return tasks[this.value].name;
}
}
},
startOnTick: false,
endOnTick: false,
title: {
text: 'Activity'
},
minPadding: 0.2,
maxPadding: 0.2
},
http://jsfiddle.net/kannankeril/fdTEx/5347/
minorTickInterval: 24 * 3600 * 1000, // = 1 day
type: 'datetime',
min: Date.UTC(2012, 0, 3),