Skip to content

warp view gauge

xavier edited this page Oct 23, 2020 · 2 revisions

Gauge

type = gauge

gauge

type = bullet

bullet

CSS vars

  • Tooltip
    • --warp-view-chart-legend-bg
    • --warp-view-chart-legend-color
  • Size
    • --warp-view-chart-width
    • --warp-view-chart-height

Specific attributes

See common attributes

Events

See common events

Data format

GTS, GTS array, complex data or specific format for data:

[
    {
        "key":"serie0",
        "value":0.5018233101070095
    },
    {
        "key":"serie1",
        "value":0.3114082214643945
    },
    ...
]

Specific complex data params

Name Type Description
datasetColor string Color of the trace
maxValue number Maximum value for current gauge

Specific options and globalParams

See common options

Name Type Description
maxValue number Maximum value for gauges

Sample

<warpview-tile
          url="https://warp.senx.io/api/v0/exec"
          responsive="true"
          type="gauge">
0 2 <% 'j' STORE
    NEWGTS 'serie' $j TOSTRING + RENAME NOW NaN NaN NaN RAND ADDVALUE
%> FOR
</warpview-tile>