Plot-Widgets

plot.comfortchart plot.gauge plot.heatingcurve plot.period plot.pie plot.rtr plot.temprose plot.xyplot


plot.pie

A pie diagram

Parameters
{{ plot.pie(id, item, label, color, text, mode) }}
id
unique id for this widget (optional)
item
series of item(s). More items in array form: [ item1 , item2 ]
label
series of label(s). More labels in array form: [ label1 , label2 ]
color
color for each series e. g. '#f00' for red. More color/s in array form: ['#f00','#fff'] (optional, default: sutiable for design)
text
text for headline
mode
set dataview mode: 'label', 'legend' or 'none' (optional, default: 'legend')
Example
{{ plot.pie('', ['bath.p1','bath.p2','bath.p3'], ['Pie 1','Pie 2','Pie 3']) }}
{{ plot.pie('', ['bath.p1','bath.p2','bath.p3'], ['Pie 1','Pie 2','Pie 3'], ['#FF0000','#FFFFFF','#000000'], '', 'label') }}

a simple plot with legend

Custon names and colors, data view = 'label'


Author: ramann, Stefan Widmer

Widgets

Design

Misc