Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Highcharts will automatically try to find the best format for the current zoom-range. This is done if the xAxis has the type <code>'datetime'</code>. Next the unit of the current zoom is calculated, it could be one of:</p> <ul> <li>second</li> <li>minute</li> <li>hour</li> <li>day</li> <li>week</li> <li>month</li> <li>year</li> </ul> <p>This unit is then used find a format for the axis labels. The default patterns are:</p> <pre><code>second: '%H:%M:%S', minute: '%H:%M', hour: '%H:%M', day: '%e. %b', week: '%e. %b', month: '%b \'%y', year: '%Y' </code></pre> <p>If you want the day to be part of the "hour"-level labels you should change the <code>dateTimeLabelFormats</code> option for that level include <code>%d</code> or <code>%e</code>. These are the available patters:</p> <ul> <li>%a: Short weekday, like 'Mon'.</li> <li>%A: Long weekday, like 'Monday'.</li> <li>%d: Two digit day of the month, 01 to 31.</li> <li>%e: Day of the month, 1 through 31.</li> <li>%b: Short month, like 'Jan'.</li> <li>%B: Long month, like 'January'.</li> <li>%m: Two digit month number, 01 through 12.</li> <li>%y: Two digits year, like 09 for 2009.</li> <li>%Y: Four digits year, like 2009.</li> <li>%H: Two digits hours in 24h format, 00 through 23.</li> <li>%I: Two digits hours in 12h format, 00 through 11.</li> <li>%l (Lower case L): Hours in 12h format, 1 through 11.</li> <li>%M: Two digits minutes, 00 through 59.</li> <li>%p: Upper case AM or PM.</li> <li>%P: Lower case AM or PM.</li> <li>%S: Two digits seconds, 00 through 59</li> </ul> <p><a href="http://api.highcharts.com/highcharts#xAxis.dateTimeLabelFormats" rel="noreferrer">http://api.highcharts.com/highcharts#xAxis.dateTimeLabelFormats</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload