Charts
TwBulletChart
TwBulletChart is a Blazor bullet chart that benchmarks an actual value against a target, with shaded bands for qualitative ranges.
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
TwBulletChart shows, for each measure, a bar for the actual value and a marker for the target. Pass a list of ChartBullet with a label, a value and a target. Each measure has its own scale, so revenue in thousands and a percentage can share one chart.- Actual
- Target
Qualitative ranges
Give a bullet a list of
Ranges to shade bands behind the bar, for example the limits of poor, fair and good. The darkest band is the lowest range.- Actual
- Target
Labels
ValueLabel and TargetLabel rename the two values in the legend, tooltips and table view.- This quarter
- Plan
RAZOR
<TwChart Title="Quarterly targets">
<TwBulletChart Items="@_bullets" ValueLabel="This quarter" TargetLabel="Plan" Height="ChartHeight.Small" />
</TwChart>Summary
Tooltips and the table view give the actual value and the target of each measure.