plot.multiaxis
A simple widget for plotting charts with multiple y-axis (based on macro period)
Parameters
{{plot.multiaxis(id, item, mode, tmin, tmax, ymin, ymax, count, label, color, exposure, axis, zoom, assign, opposite, ycolor) }}
id
unique id for this widget
item
series of item/s. More item/s in array form: [ item1 , item2 ]
mode
the mode: 'avg', 'sum', 'min', 'max'
tmin
the minimum time (x-axis): '1h', '2h'... (duration-format)
tmax
the maximum time (x-axis): '', '1h', '2h'... (duration-format, default: now)
ymin
the minimum for each y-axis (optional) use [ min_y-axis1, min_y-axis2, ...]
ymax
the maximum for each y-axis (optional) use [ max_y-axis1, max_y-axis2, ...]
count
the number of points in the period (optional)
label
label/s for each series (optional)
color
color/s for each series e. g. '#f00' for red (optional, default: sutiable for design)
exposure
exposure is type/s for each series: 'line', 'stair', 'spline', 'area', 'areaspline', 'column' (optional, default 'line')
axis
title/s for the x-axis and y-axis (optional)
zoom
minimum time while zooming in sec (optional, duration-format)
assign
assignment of the series to the axis (optional)
opposite
y-axis setup for left '0' and right '1' hand (optional)
ycolor
y-axis color might be applied (optional)
Examples
Examples
{{ plot.multiaxis('p1',
['env.system.load','env.core.memory'],
'avg', '1d', '', '', '', '',
['system load', 'memory'],
['#a00','#070'], '',
['Zeit', 'Auslastung', 'Speicher'],
'5i', [1,2], [0,1],
['#f00','#0a0']) }}