Commit 4e8d8535 authored by David Schnur's avatar David Schnur

Move time-specific options into the time plugin.

parent a1b4afc5
...@@ -453,7 +453,6 @@ Licensed under the MIT license. ...@@ -453,7 +453,6 @@ Licensed under the MIT license.
show: null, // null = auto-detect, true = always, false = never show: null, // null = auto-detect, true = always, false = never
position: "bottom", // or "top" position: "bottom", // or "top"
mode: null, // null or "time" mode: null, // null or "time"
timezone: null, // "browser" for local to the client or timezone for timezone-js
font: null, // null (derived from CSS in placeholder) or object like { size: 11, style: "italic", weight: "bold", family: "sans-serif", variant: "small-caps" } font: null, // null (derived from CSS in placeholder) or object like { size: 11, style: "italic", weight: "bold", family: "sans-serif", variant: "small-caps" }
color: null, // base color, labels, ticks color: null, // base color, labels, ticks
tickColor: null, // possibly different color of ticks, e.g. "rgba(0,0,0,0.15)" tickColor: null, // possibly different color of ticks, e.g. "rgba(0,0,0,0.15)"
...@@ -469,14 +468,9 @@ Licensed under the MIT license. ...@@ -469,14 +468,9 @@ Licensed under the MIT license.
reserveSpace: null, // whether to reserve space even if axis isn't shown reserveSpace: null, // whether to reserve space even if axis isn't shown
tickLength: null, // size in pixels of ticks, or "full" for whole line tickLength: null, // size in pixels of ticks, or "full" for whole line
alignTicksWithAxis: null, // axis number or null for no sync alignTicksWithAxis: null, // axis number or null for no sync
// mode specific options
tickDecimals: null, // no. of decimals, null means auto tickDecimals: null, // no. of decimals, null means auto
tickSize: null, // number or [number, "unit"] tickSize: null, // number or [number, "unit"]
minTickSize: null, // number or [number, "unit"] minTickSize: null // number or [number, "unit"]
monthNames: null, // list of names of months
timeformat: null, // format string to use
twelveHourClock: false // 12 or 24 time in time mode
}, },
yaxis: { yaxis: {
autoscaleMargin: 0.02, autoscaleMargin: 0.02,
......
...@@ -10,7 +10,14 @@ API.txt for details. ...@@ -10,7 +10,14 @@ API.txt for details.
(function($) { (function($) {
var options = {}; var options = {
xaxis: {
timezone: null, // "browser" for local to the client or timezone for timezone-js
timeformat: null, // format string to use
twelveHourClock: false, // 12 or 24 time in time mode
monthNames: null // list of names of months
}
};
// round to nearby lower multiple of base // round to nearby lower multiple of base
......
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