Gauge
Since 0.1.0-alpha.22IzzyBlazor.Gauge in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly
and its doc comments.
Properties (12)
RefreshTimeSpan?How often the gauge reads its data again, at least a second, such as Refresh="TimeSpan.FromSeconds(30)". On a static page the page (or RefreshFrom) is fetched again and the gauge drawn from it, found by its id, which it then needs; on an interactive page OnRefresh is raised, for you to load new data. Not while the tab is hidden or the gauge is off-screen, nor (static) while the pointer or focus is in it. Unlike Chart's, it has no Pause button.
RefreshFromstring?On a static page with Refresh: a lighter page to fetch than this one, which renders the same gauge with the same id.
Valuedouble requiredMindouble = 0The scale's start. Defaults to 0.
Maxdouble = 1The scale's end. Defaults to 1, for a share shown with ValueFormat="P0".
Labelstring requiredWhat it measures, such as "Disk used": written with the value, and its accessible name. Required.
HideLabelbool = falseHides the label, which still names the gauge for screen readers.
ValueFormatstring?A .NET format string for the value, the scale's numbers, the target and the pointers, such as P0, N0 or 0 mb.
Targetdouble?A goal to read the value against, such as 0.8: a tick across the track, read with the value.
AccentAccent? (computed)The value's color, such as Accent.Of("#0d9488"). Defaults to the color of the GaugeBand the value is in, or the primary color.
PaletteChartPalette? (computed)The bands' colors, in the order they're written, such as ChartPalette.Of(Color.Warning, Color.Danger), or ChartPalette.Tints(Color.Warning) for a light tint up to the full color (for a thick track's bands). Defaults to grays, darkest first, which mark the ranges without saying good or bad; a value in a gray band keeps Accent or the primary color. A band's own Accent takes the place of its palette color.
ChildContentRenderFragment?The GaugeBands, ranges along the scale such as where a load turns high, and GaugePointers, more values on the same scale.
Plus 17 item props and 4 common props.
Show them hereEvents (1)
Parts (2)
Components written inside Gauge, documented here with it.
GaugeBand
A range on a Gauge's dial or a LinearGauge's scale, such as where a load turns high: <GaugeBand From="0.7" To="0.9" Accent="Accent.From(Color.Warning)" Label="High" />. It's drawn along the scale (a thin arc on a dial's outer edge), in its Accent or the gauge's palette color for its place; a value inside it fills in that color (not in a gray), and its Label shows under the value. In a BulletChart<T>, a range every row shares.
Fromdouble requiredWhere the band starts, on the gauge's scale.
Todouble requiredWhere the band ends.
AccentAccent?The band's color, such as Accent.From(Color.Warning) or Accent.Danger, in place of the gauge's Palette color for its place.
Labelstring?What a value in the band means, such as "High": shown under the value when it's in the band, and read with it, so the color isn't the only cue.
GaugePointer
Another value on a Gauge or LinearGauge, on the same scale, such as the dew point beside the temperature: <GaugePointer Value="12" Label="Dew point" />. It's drawn as a mark (a notch across a dial, a triangle on a linear scale) in the next of the chart colors, and written under the gauge with its label: "Dew point 12°". The gauge's own Value stays the one that fills.
Types (2)
Accent
classThe color of a control: buttons, badges, tags, banners, progress bars and menu items. Primary, Neutral and Danger are the roles; emphasis comes from the variant (solid, soft, outline, ghost, link), not from more colors. For one control in another color, use Of (any CSS color) or Token (a theme token); text on it is chosen for contrast.
| Member | Description |
|---|---|
Primary | The brand color, for the main action. |
Neutral | A quiet, gray action. |
Danger | A destructive action, such as Delete. |
Of(string css) | Any CSS color, such as |
Token(string name) | A theme token, such as |
From(Color color) | A |
ChartPalette
classThe colors a Chart<T> or PieChart<T> gives its series or slices, or a Gauge its bands, in order: Colors (the default: the theme's palette, set with ChartPalette), one palette whatever the theme's (Contrast, OkabeIto, Calm), one series picked out with Emphasis, Shades of one color, Diverging between two, or your own with Of. Shades and diverging ramps are sampled for the number of series, so three get three even steps, and they turn round in dark mode, where the strongest color is the lightest.
| Member | Description |
|---|---|
Colors | Distinct colors, for series that aren't in an order, such as regions or products. The default. A chart of exactly two, three or four series gets a set picked for that count, so every pair stays apart for color-blind readers ( |
Contrast | The Contrast palette whatever the theme's: eight colors of one lightness, each 3:1 or more on the surface, with sets picked for two, three or four series. The same in every app: it doesn't follow the brand. |
OkabeIto | The Okabe-Ito palette whatever the theme's: the widely used color-blind-safe set, seven colors and then gray. |
Calm | The Calm palette whatever the theme's: muted colors, for dashboards read all day. |
Emphasis(int index, Color? color) | One series in color and every other one in gray, for a chart that makes a point about one series, such as this year against earlier years or one store against the rest. The gray is the text color mixed into the surface, so it keeps 3:1 on the surface in both schemes and the other series stay readable as context. The grays are alike, so give the series names: the legend and tooltips tell them apart. On a line chart, define the picked series last so it's drawn on top. |
Shades(Color color) | Light to dark shades of one color, for series in an order, such as age bands or plan tiers: the first series is the lightest. Past about six, shades are hard to tell apart. |
Tints(Color color) | Light tints of one color up to the color itself, for ranges drawn as large areas, such as a |
Diverging(Color low, Color high) | Two colors that meet at a neutral middle, for series on either side of one, such as answers from "Strongly disagree" to "Strongly agree": the first series is the strongest |
Of(Color[] colors) | Your own colors, one per series in order; they repeat past the last, up to eight. |