Table of Contents

Class TwSmallMultiplesChart

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

Small multiples: the same simple chart repeated in a grid, one panel per series, all on one shared scale so the panels can be compared at a glance. Use it instead of crowding many series into one plot.

public class TwSmallMultiplesChart : TwCategoryChartBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent, IAsyncDisposable
Inheritance
TwSmallMultiplesChart
Implements
Inherited Members

Constructors

TwSmallMultiplesChart()

public TwSmallMultiplesChart()

Properties

Columns

Gets or sets how many panels sit in a row.

[Parameter]
public int? Columns { get; set; }

Property Value

int?

Remarks

If not set, up to three panels share a row.

Kind

Gets or sets the mark drawn in each panel: columns, a line or an area.

[Parameter]
public SmallMultipleKind Kind { get; set; }

Property Value

SmallMultipleKind

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

bool

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

builder ChartSceneBuilder

The builder that collects the scene.

series IReadOnlyList<ChartSeriesSlot>

The series the reader has not hidden. Never empty.