Skip to content

Graph Widget

The graph widget provides graphical line chart display for historical and current widget data.

Graph Widget

Configurable components

NameDescription
cardBackground button card component
primaryButton component

Widget Properties

Class NameDescription
presentationPresentation mode for the graph. Defaults to "line".
valueValue to display on the graph. Defaults to 0.

CSS Properties

These CSS properties configure the underlying button component.

PropertyDescription
backgroundBackground color of the graph
colorText color of the graph
font-familyFont family of the graph labels. Defaults to Inter.
font-sizeFont size of the graph labels. Defaults to 12px.
--w-fill-colorColor of the graph fill. Defaults to --v-theme-primary with 0.15 opacity.
--w-grid-colorColor of the graph grid. Defaults to --v-theme-accent with 0.25 opacity.
--w-last-fill-colorColor of the last graph point fill. Defaults to --v-theme-secondary-lighten-2 with 0.35 opacity.
--w-line-colorColor of the graph lines. Defaults to --v-theme-accent-darken-1.
--w-line-curve-tensionTension of the graph lines. Defaults to 0.1.
--w-line-widthWidth of the graph lines. Defaults to 2px.
--w-predictExtrapolate the last point of the graph if incomplete period. Defaults to false.
--w-point-radiusRadius of the graph points. Defaults to 3px.
--w-span-gapsWhether to span gaps between points. Defaults to true.
--w-tick-colorColor of the graph ticks. Defaults to --v-theme-accent-darken-1.
--w-tick-sizeSize of the graph ticks. Defaults to 14px.