Commit f75a5a51 authored by David Schnur's avatar David Schnur

Updated axis option defaults and documentation.

Updated the axis option defaults and docs for tickColor, tickFont,
tickWidth, and tickHeight. Also re-organized the API docs to match the
master list, and revised many areas for clarity.
parent 8d38774c
This diff is collapsed.
...@@ -482,27 +482,36 @@ Licensed under the MIT license. ...@@ -482,27 +482,36 @@ Licensed under the MIT license.
sorted: null // default to no legend sorting sorted: null // default to no legend sorting
}, },
xaxis: { xaxis: {
show: null, // null = auto-detect, true = always, false = never
position: "bottom", // or "top" show: null, // null = auto-detect, true = always, false = never
mode: null, // null or "time" position: "bottom", // or "top"
font: null, // null (derived from CSS in placeholder) or object like { size: 11, lineHeight: 13, style: "italic", weight: "bold", family: "sans-serif", variant: "small-caps" } mode: null, // null or "time"
color: null, // base color, labels, ticks
tickColor: null, // possibly different color of ticks, e.g. "rgba(0,0,0,0.15)" color: null, // base color, labels, ticks
transform: null, // null or f: number -> number to transform axis font: null, // null (derived from CSS in placeholder) or object like { size: 11, lineHeight: 13, style: "italic", weight: "bold", family: "sans-serif", variant: "small-caps" }
min: null, // min. value to show, null means set automatically
max: null, // max. value to show, null means set automatically
autoscaleMargin: null, // margin in % to add if auto-setting min/max
transform: null, // null or f: number -> number to transform axis
inverseTransform: null, // if transform is set, this should be the inverse function inverseTransform: null, // if transform is set, this should be the inverse function
min: null, // min. value to show, null means set automatically
max: null, // max. value to show, null means set automatically ticks: null, // either [1, 3] or [[1, "a"], 3] or (fn: axis info -> ticks) or app. number of ticks for auto-ticks
autoscaleMargin: null, // margin in % to add if auto-setting min/max tickSize: null, // number or [number, "unit"]
ticks: null, // either [1, 3] or [[1, "a"], 3] or (fn: axis info -> ticks) or app. number of ticks for auto-ticks minTickSize: null, // number or [number, "unit"]
tickFormatter: null, // fn: number -> string tickFormatter: null, // fn: number -> string
tickWidth: null, // size of tick labels in pixels tickDecimals: null, // no. of decimals, null means auto
tickHeight: null,
reserveSpace: null, // whether to reserve space even if axis isn't shown tickColor: null, // possibly different color of ticks, e.g. "rgba(0,0,0,0.15)"
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
tickDecimals: null, // no. of decimals, null means auto tickWidth: null, // width of tick labels in pixels
tickSize: null, // number or [number, "unit"] tickHeight: null, // height of tick labels in pixels
minTickSize: null // number or [number, "unit"] tickFont: null, // null or font-spec object (see font, above)
reserveSpace: null, // whether to reserve space even if axis isn't shown
alignTicksWithAxis: null // axis number or null for no sync
}, },
yaxis: { yaxis: {
autoscaleMargin: 0.02, autoscaleMargin: 0.02,
......
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