Commit c0900a1d authored by Mark Côté's avatar Mark Côté

Updated API.md for %q time-series tick-label option.

parent 657a39b8
...@@ -582,10 +582,10 @@ xaxis: { ...@@ -582,10 +582,10 @@ xaxis: {
mode: "time" mode: "time"
timeformat: "%Y/%m/%d" timeformat: "%Y/%m/%d"
} }
``` ```
This will result in tick labels like "2000/12/24". A subset of the This will result in tick labels like "2000/12/24". A subset of the
standard strftime specifiers are supported: standard strftime specifiers are supported (plus the nonstandard %q):
```js ```js
%a: weekday name (customizable) %a: weekday name (customizable)
...@@ -596,6 +596,7 @@ standard strftime specifiers are supported: ...@@ -596,6 +596,7 @@ standard strftime specifiers are supported:
%I: hours, 12-hour time, zero-padded (01-12) %I: hours, 12-hour time, zero-padded (01-12)
%m: month, zero-padded (01-12) %m: month, zero-padded (01-12)
%M: minutes, zero-padded (00-59) %M: minutes, zero-padded (00-59)
%q: quarter (1-4)
%S: seconds, zero-padded (00-59) %S: seconds, zero-padded (00-59)
%y: year (two digits) %y: year (two digits)
%Y: year (four digits) %Y: year (four digits)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment