あなたはX軸の機能labels.formatter使用することができます:あなたはそれが動作する方法の例を見ることができる。ここ http://api.highcharts.com/highcharts/xAxis.labels.formatter
formatter: function() {
var xAxis = this.axis,
previousMonth,
date,
newTicks = [],
index,
returnedString,
months = this.chart.options.lang.months;
Highcharts.each(xAxis.tickPositions, function(t) {
date = new Date(t);
if (date.getMonth() !== previousMonth) {
previousMonth = date.getMonth();
newTicks.push(t);
}
});
index = newTicks.indexOf(this.value);
date = new Date(this.value);
returnedString = index >= 0 ? date.getDate() + '. ' + months[date.getMonth()] : date.getDate()
return returnedString;
}
を:https://jsfiddle.net/o5926erd/8/
あなたの(作業中の)コードをフィドルとシャーに入れてください私たちのリンク? –
はい、私は例を追加します。 –
少し混乱しました。あなたの例は、あなたの要件に応じて、月の最初の日を示しているようです。 –