Loading

profile

GTS values are considered as durations.

NameDefault
--warp-view-chart-label-color#8e8e8e
--warp-view-chart-grid-color#8e8e8e
NameTypeDescription
dataGTS, GTS[]Data to display, numeric GTS only
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)

Supported option per series are:

  • datasetColor: Hex CSS color of the series. ie: '#fff00f'

Samples

Simple profile

<div style="height: 500px">
<discovery-tile url="https://sandbox.senx.io/api/v0/exec" type="profile" chart-title="Profile chart">
    1 4 <% 'i' STORE NEWGTS 'data-' $i TOSTRING + RENAME 'g' STORE
    1 5 <% 'ts' STORE $g $ts h NOW + RAND h - NaN NaN NaN RAND 20.0 * m ADDVALUE DROP %> FOR
    $g %> FOR SORT
</discovery-tile>
</div>
1 4 <% 'i' STORE NEWGTS 'data-' $i TOSTRING + RENAME 'g' STORE 1 5 <% 'ts' STORE $g $ts h NOW + RAND h - NaN NaN NaN RAND 20.0 * m ADDVALUE DROP %> FOR $g %> FOR SORT

Custom data

<div style="height: 500px">
<discovery-tile url="https://sandbox.senx.io/api/v0/exec" type="profile" chart-title="Profile chart">
NOW 'now' STORE
{
  'title' 'Test'
  'values' {
    'A' {
      1 5 <%
        'i' STORE
        NOW $i h - RAND h - RAND 20.0 * m
      %> FOR
    }
    'B' {
      1 5 <%
        'i' STORE
        NOW $i h - RAND h - RAND 20.0 * m
      %> FOR
    }
    'C' {
      1 5 <%
        'i' STORE
        NOW $i h - RAND h - RAND 20.0 * m
      %> FOR
    } 
  }
} 'values' STORE
{ 'data' $values 'globalParams' { } }
</discovery-tile>
</div>
NOW 'now' STORE { 'title' 'Test' 'values' { 'A' { 1 5 <% 'i' STORE NOW $i h - RAND h - RAND 20.0 * m %> FOR } 'B' { 1 5 <% 'i' STORE NOW $i h - RAND h - RAND 20.0 * m %> FOR } 'C' { 1 5 <% 'i' STORE NOW $i h - RAND h - RAND 20.0 * m %> FOR } } } 'values' STORE { 'data' $values 'globalParams' { } }