pie, doughnut, rose
Name | Default |
--warp-view-chart-label-color | #8e8e8e |
--warp-view-chart-grid-color | #8e8e8e |
Name | Type | Description |
data | GTS , GTS[] , custom data | Data to display |
globalParams | Option | Global options (see above) concerning this tile |
params | Option[] | List of options (see above) concerning each displayed dataset depending of the index of this array |
events | Events[] | List of events to emit (see below) |
Custom data:
{ 'key':string 'value':number }[]
Samples
Simple Pie
<div style="height: 250px">
<discovery-tile url="https://sandbox.senx.io/api/v0/exec" type="pie">
0 2 <% 'j' STORE
NEWGTS 'serie' $j TOSTRING + RENAME NOW NaN NaN NaN RAND ADDVALUE
%> FOR
</discovery-tile>
</div>
0 2 <% 'j' STORE
NEWGTS 'serie' $j TOSTRING + RENAME NOW NaN NaN NaN RAND ADDVALUE
%> FOR
Simple Pie with custom data
<div style="height: 250px">
<discovery-tile url="https://sandbox.senx.io/api/v0/exec" type="pie">
[
0 2 <% 'j' STORE
{ 'key' 'series-' $j TOSTRING + 'value' RAND }
%> FOR
]
</discovery-tile>
</div>
[
0 2 <% 'j' STORE
{ 'key' 'series-' $j TOSTRING + 'value' RAND }
%> FOR
]
Simple Pie with custom data as map
<div style="height: 250px">
<discovery-tile url="https://sandbox.senx.io/api/v0/exec" type="pie">
{
0 2 <% 'j' STORE
'series-' $j TOSTRING + RAND
%> FOR
}
</discovery-tile>
</div>
{
0 2 <% 'j' STORE
'series-' $j TOSTRING + RAND
%> FOR
}
Simple doughnut
<div style="height: 250px">
<discovery-tile url="https://sandbox.senx.io/api/v0/exec" type="doughnut">
0 2 <% 'j' STORE
NEWGTS 'serie' $j TOSTRING + RENAME NOW NaN NaN NaN RAND ADDVALUE
%> FOR
</discovery-tile>
</div>
0 2 <% 'j' STORE
NEWGTS 'serie' $j TOSTRING + RENAME NOW NaN NaN NaN RAND ADDVALUE
%> FOR
Simple rose
<div style="height: 250px">
<discovery-tile url="https://sandbox.senx.io/api/v0/exec" type="rose">
0 2 <% 'j' STORE
NEWGTS 'serie' $j TOSTRING + RENAME NOW NaN NaN NaN RAND ADDVALUE
%> FOR
</discovery-tile>
</div>
0 2 <% 'j' STORE
NEWGTS 'serie' $j TOSTRING + RENAME NOW NaN NaN NaN RAND ADDVALUE
%> FOR