Skip to content

warp view spectrum

xavier edited this page Oct 23, 2020 · 3 revisions

Spectrum chart

type = histogram2dcontour

histogram2dcontour

type = histogram2d

histogram2d

CSS vars

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

Specific attributes

See common attributes

Events

See common events

Data format

GTS, GTS array or complex data.

Specific complex data params

Name Type Description
datasetColor string Color of the trace

Specific options and globalParams

See common options

Name Type Default Description
timeMode string 'date' date, timestamp
histo object {} Specific histo object described below

Histo object

Name Type Default Description
histnorm string 'density' Specifies the type of normalization used for this histogram trace. Accepted values are: 'percent', 'probability', 'density' and 'probability density'.
histfunc string 'count' Specifies the binning function used for this histogram trace. Accepted values are: 'count', 'sum', 'avg', 'min' and 'max'.

Sample

<warpview-tile
          url="https://warp.senx.io/api/v0/exec"
          responsive="true"
          type="histogram2dcontour">
0 2 <% 'j' STORE
    NEWGTS 'series' $j TOSTRING + RENAME 'gts' STORE
    0 10 <%
        'i' STORE
        $gts NOW $i RAND + STU * - NaN NaN NaN RAND ADDVALUE DROP
    %> FOR
    $gts
%> FOR
</warpview-tile>