I've setup my highchart options, such that my a-axis uses datetime. My data points are milliseconds and a number (x,y) -> (utcDate,number).
options.series.push({
type: "line",
name: "Performance",
data: dataPoints,
color: "#FF8000"
});
my options include:
xAxis: {
type: "datetime",
dateTimeLabelFormats: {
day: "%e. %b",
month: "%b '%y",
year: "%Y"
},
lineWidth: 2
}
The problem is: I want my chart to show my first and last la开发者_StackOverflow中文版bel: 1. Aug & 31. Aug.
I've tried using showFirstTick, showFirstLabel, and pointStart but that doesn't work. I can't set the interval, because my chart can show anything from weeks to months to years and would cause too much clutter.
I think whats happening here is that the x-axis selects to show weeks (formatter selection described here) instead of months. The formatter patterns are merged together with the default ones, so there will still be a pattern for weeks even if it is left out from your options. Also check the startOfWeek
option (reference) where you set whether the week starts on Sundays or Mondays, defaults to Mondays.
(don't know of any way to turn off a certain level without editing the source)
精彩评论