profile
GTS values are considered as durations.
Name | Default |
---|---|
--warp-view-chart-label-color | #8e8e8e |
--warp-view-chart-grid-color | #8e8e8e |
Name | Type | Description |
---|---|---|
data | GTS , GTS[] | Data to display, numeric GTS only |
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) |
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>
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>