Charts
TwQuadrantChart
TwQuadrantChart is a Blazor quadrant chart: a scatter plot split into four labelled regions by two thresholds, for sorting items into groups.
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
TwQuadrantChart is a scatter plot divided into four regions by a horizontal and a vertical line. Points are labelled by default, since the reader wants to know which item landed where.Quadrant labels
Name each region with
TopLeftLabel, TopRightLabel, BottomLeftLabel and BottomRightLabel.RAZOR
<TwChart Title="Backlog priorities">
<TwQuadrantChart Series="@_backlog" XTitle="Effort" YTitle="Impact"
TopLeftLabel="Quick wins" TopRightLabel="Major projects"
BottomLeftLabel="Fill-ins" BottomRightLabel="Reconsider" />
</TwChart>Thresholds
The dividers sit in the middle of each axis unless you set
XThreshold and YThreshold to the values that separate the groups.RAZOR
<TwChart Title="Backlog priorities">
<TwQuadrantChart Series="@_backlog" XTitle="Effort" YTitle="Impact" XThreshold="3.5" YThreshold="7"
TopLeftLabel="Quick wins" TopRightLabel="Major projects"
BottomLeftLabel="Fill-ins" BottomRightLabel="Reconsider" />
</TwChart>Inherited options
Everything on TwScatterChart is available, including bubble sizes and
ShowLabels.Summary
Tooltips and the table view give the X and Y values of each point, and its size when it has one.