Charts
TwGaugeChart
TwGaugeChart is a Blazor circular gauge: an arc filled in proportion to one value between a minimum and a maximum.
Last updated
Please be aware this component is new, may have bugs and/or be subject to change. Please report any bugs at
https://github.com/twblazor/twblazor/issues.
Basic usage
TwGaugeChart fills an arc in proportion to a single Value and prints it in the middle. Label says what it measures.RAZOR
<TwChart Title="Storage used">
<TwGaugeChart Value="68" Label="Percent used" />
</TwChart>Range
The arc runs from
Min (0 by default) to Max (100 by default). A value outside the range fills or empties the arc but is still printed as given.RAZOR
<TwChart Title="Response time">
<TwGaugeChart Value="340" Min="0" Max="500" Label="Milliseconds" />
</TwChart>Size and format
Height sets how large the gauge may grow and ValueFormat formats the figure.RAZOR
<div class="grid grid-cols-2 gap-8">
<TwChart Title="CPU">
<TwGaugeChart Value="0.42" Max="1" Label="Load" ValueFormat="0%" Height="ChartHeight.Small" />
</TwChart>
<TwChart Title="Memory">
<TwGaugeChart Value="0.87" Max="1" Label="In use" ValueFormat="0%" Height="ChartHeight.Small" />
</TwChart>
</div>Summary
Tooltips and the table view give the value of the gauge and the range it is measured against.