Loading

pie, doughnut, rose

NameDefault
--warp-view-chart-label-color#8e8e8e
--warp-view-chart-grid-color#8e8e8e
NameTypeDescription
dataGTS, GTS[], custom dataData to display
globalParamsOptionGlobal options (see above) concerning this tile
paramsOption[]List of options (see above) concerning each displayed dataset depending of the index of this array
eventsEvents[]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