smartVISU
15:59,21.12, v2.7

Plot-Widgets

plot.comfortchart plot.period plot.rtr plot.temprose


plot.period

A simple widget for plotting charts

Parameters
{{plot.period(id, gad, mode, tmin, tmax, ymin, ymax, step, label, color, exposure, axes, zoom) }}
id
unique id for this widget
gad
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 y-axis (optional)
ymax
the maximum y-axis (optional)
step
the step between two time-points (optional, only for 'offline'-driver)
label
label/s for each series (optional)
color
color/s for each series e. g. '#f00' for red (optional, default: sutiable for design)
exposure
type/s for each series: 'line', 'stair', 'spline', 'area', 'areaspline', 'column' (optional, default 'line')
axes
title/s for the x-axis and y-axis
zoom
minimum time while zooming in sec (optional, duration-format)
More Information
Example
{{ plot.period('p1', 'bath_plot_value', 'avg', '3h') }}

{{ plot.period('p2', ['bath_plot1', 'bath_plot2', 'bath_plot3'], 'avg', '1h', 0, 0, 100, '', '', ['#aa0', '#a00', '#00a'], ['area', 'column', 'line']) }}

{{ plot.period('p3', 'bath_plot_value', 'avg', '10h', 0, 0, 100, '', '', '', '', '', '1h' ) }}

p1: a simple plot

p2: a plot with 3 series

p3: a zoomable plot

Widgets

Design

Misc