Table of Contents

Class TwDensityPlotChart

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

A density plot: a smooth curve for each group of raw observations showing where its values concentrate, for comparing the shape of distributions on one axis.

public class TwDensityPlotChart : TwChartBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent, IAsyncDisposable
Inheritance
TwDensityPlotChart
Implements
Inherited Members

Remarks

Each curve is a kernel density estimate, and all share one vertical scale so a taller curve always means a tighter cluster. The curves have no value axis because density has no unit a reader needs.

Constructors

TwDensityPlotChart()

public TwDensityPlotChart()

Properties

LabelHeader

Gets or sets the heading of the group column in the table view. Defaults to the localized Chart_Group text ("Group").

[Parameter]
public string? LabelHeader { get; set; }

Property Value

string

Samples

Gets or sets the groups of raw observations to plot.

[Parameter]
public IReadOnlyList<ChartSample> Samples { get; set; }

Property Value

IReadOnlyList<ChartSample>

Methods

BuildScene(ChartSceneBuilder)

Describes what the chart draws by adding marks, data points, axes, legend entries and a table to builder. Add nothing to show the empty state.

protected override void BuildScene(ChartSceneBuilder builder)

Parameters

builder ChartSceneBuilder

The builder that collects the scene.