Loading

calendar

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

Samples

Simple calendar

<div style="height: 250px">
<discovery-tile url="https://sandbox.senx.io/api/v0/exec" type="calendar">
0 1 <% 'j' STORE
  NEWGTS 'serie-' $j TOSTRING + RENAME 'g' STORE
  1 200 <% 'i' STORE $g NOW $i d - NaN NaN NaN RAND ADDVALUE DROP %> FOR
  $g SORT 
%> FOR STACKTOLIST 'data' STORE
{ 'data' $data 'params' [ { 'scheme'  'CTHULHU' } { 'scheme'  'MATRIX' } ] }
</discovery-tile>
</div>
0 1 <% 'j' STORE NEWGTS 'serie-' $j TOSTRING + RENAME 'g' STORE 1 200 <% 'i' STORE $g NOW $i d - NaN NaN NaN RAND ADDVALUE DROP %> FOR $g SORT %> FOR STACKTOLIST 'data' STORE { 'data' $data 'params' [ { 'scheme' 'CTHULHU' } { 'scheme' 'MATRIX' } ] }

Simple calendar with localization

<div style="height: 250px">
<discovery-tile url="https://sandbox.senx.io/api/v0/exec" type="calendar">
NEWGTS 'serie' RENAME 'g' STORE
1 500 <% 
  'i' STORE $g NOW $i d - NaN NaN NaN RAND ADDVALUE DROP
%> FOR
{ 
  'data' $g SORT  
  'globalParams' {
    'calendar' {
      'firstDay' 1
      'dayLabel' [ 'Dim' 'Lun' 'Mar' 'Mer' 'Jeu' 'Ven' 'Sam' ]
      'monthLabel' [ 'Jan.' 'Fev.' 'Mars' 'Avr.' 'Mai' 'Juin' 'Juil.' 'Août' 'Sept.' 'Oct.' 'Nov.' 'Dec' ]
    }
  }
}
</discovery-tile>
</div>
NEWGTS 'serie' RENAME 'g' STORE 1 500 <% 'i' STORE $g NOW $i d - NaN NaN NaN RAND ADDVALUE DROP %> FOR { 'data' $g SORT 'globalParams' { 'calendar' { 'firstDay' 1 'dayLabel' [ 'Dim' 'Lun' 'Mar' 'Mer' 'Jeu' 'Ven' 'Sam' ] 'monthLabel' [ 'Jan.' 'Fev.' 'Mars' 'Avr.' 'Mai' 'Juin' 'Juil.' 'Août' 'Sept.' 'Oct.' 'Nov.' 'Dec' ] } } }