编辑 | blame | 历史 | 原始文档

Parameters

Param Type Default Description
column string column name or index
[legend] string display name of the channel
[units] string display units name
[displayFormat] string format string for the values, uses d3-format:
[,][.precision][f\|%]
, - group thousands with separator (from locale): , (12345.6 -> 12,345.6) ,.2f (12345.6 -> 12,345.60)
.precision - precision for f\|% type, significant digits for empty type:
.3f (12.3456 -> 12.345, 1000 -> 1000.000)
.3 (12.3456 -> 12.3, 1.2345 -> 1.23, 12345 -> 1.23e+4)
f - treat as float, default precision is .6: f (12 -> 12.000000) .2f (12 -> 12.00) .0f (12.34 -> 12)
% - treat as percents and format accordingly: %.0 (0.128 -> 13%) %.1 (1.2345 -> 123.4%)
[height] number 200 height of the plot
[strokeColor] string "#f48a42" plot stroke color, expects hex value
[strokeWidth] number 1 plot stroke width
[markerColor] string "#f48a42" plot stroke color, expects hex value
[markerSize] number 0 plot stroke width
[markerSymbol] number circle plot stroke width
[timeRange] string data range of x-axis / time axis
[dataRange] string data range of y-axis / data axis
[showAxis] string show or bide both axis
[fixedScale] boolean if false current view scales to fit only displayed values; if given overwrites TimeSeries' fixedScale