Class TwIconChart
- Namespace
- TwBlazor.Components
- Assembly
- TwBlazor.dll
An icon chart: values shown with icons, either as a row of repeated icons per value (a pictogram) or as one icon per value sized by it. Icons make a chart quick to relate to, at the cost of precision.
public class TwIconChart : TwValueChartBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent, IAsyncDisposable
- Inheritance
-
TwIconChart
- Implements
- Inherited Members
Remarks
The icons are decorative. The values are stated by the data points, tooltips and table view.
Constructors
TwIconChart()
public TwIconChart()
Properties
Icon
Gets or sets the icon to draw.
[Parameter]
public Icon Icon { get; set; }
Property Value
Mode
Gets or sets whether values are shown by repeating the icon or by scaling it.
[Parameter]
public IconChartMode Mode { get; set; }
Property Value
UnitValue
Gets or sets how much one icon stands for in Count mode.
[Parameter]
public double? UnitValue { get; set; }
Property Value
Remarks
If not set, a round amount is chosen so the largest value uses about ten icons.
Methods
BuildMarks(ChartSceneBuilder)
Adds the marks, data points and axes for the values.
protected override void BuildMarks(ChartSceneBuilder builder)
Parameters
builderChartSceneBuilderThe builder that collects the scene.