Charts
TwLollipopChart
TwLollipopChart is a Blazor lollipop chart: a thin stem and a dot per value. A lighter alternative to bars when there are many categories.
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
TwLollipopChart draws a thin stem ending in a dot for each value. It reads like a column chart with far less ink, which keeps a chart with many similar values from turning into a wall of color.Horizontal
Set
Horizontal to run the stems left to right with the categories listed down the side, which gives long labels room.RAZOR
<TwChart Title="Revenue by region">
<TwLollipopChart Categories="@_regions" Series="@_revenue" Horizontal="true" ShowValues="true" />
</TwChart>Several series
With more than one series, each category shows a lollipop per series side by side.
RAZOR
<TwChart Title="Revenue by region and year">
<TwLollipopChart Categories="@_regions" Series="@_yearly" />
</TwChart>Summary
Tooltips and the table view give the value of every series for each category.