Class TwHorizonChart
- Namespace
- TwBlazor.Components
- Assembly
- TwBlazor.dll
A horizon chart: one compact row per series in which the values are cut into bands and layered, so a strong value shows as a darker color instead of a taller mark. It fits many series into little height.
public class TwHorizonChart : TwCategoryChartBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent, IAsyncDisposable
- Inheritance
-
TwHorizonChart
- Implements
- Inherited Members
Remarks
Every row shares one scale, so the same darkness means the same magnitude in each. Negative values use the color for an unfavourable change and are named as negative in tooltips and the table view.
Constructors
TwHorizonChart()
public TwHorizonChart()
Properties
BandCount
Gets or sets how many bands the values are cut into, from 1 to 6.
[Parameter]
public int BandCount { get; set; }
Property Value
Remarks
Default is 3. More bands show finer differences but are harder to tell apart.
hasSeriesLegend
Gets whether each series gets a legend entry that can hide it. Charts that label their series directly on the plot turn this off.
protected override bool hasSeriesLegend { get; }
Property Value
Methods
BuildMarks(ChartSceneBuilder, IReadOnlyList<ChartSeriesSlot>)
Adds the marks, data points and axes for the visible series.
protected override void BuildMarks(ChartSceneBuilder builder, IReadOnlyList<ChartSeriesSlot> series)
Parameters
builderChartSceneBuilderThe builder that collects the scene.
seriesIReadOnlyList<ChartSeriesSlot>The series the reader has not hidden. Never empty.