calendar

<discovery-tile url="https://sandbox.senx.io/api/v0/exec" type="calendar">
  ...
</discovery-tile>
{
  'type' 'calendar'
  ...
  'macro' <% %>
}
Name Default
--warp-view-chart-label-color #8e8e8e
--warp-view-chart-grid-color #8e8e8e
Name Type Description
data GTS, GTS[] 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)

Supported option per series are:

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

Samples

Simple 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' } 
  ]
}
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

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' ]
    }
  }
}
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' ] } } }

Found an issue on this page or something missing?

Tell us onSlack iconThe Lounge, the Warp 10 Community Slack.