Table of Contents

Class TwScatterChart

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

A scatter plot: points positioned by two numeric values to show how they relate. Give points a Size for a bubble chart, or set Connect for a connected scatter plot.

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

Remarks

Any two points can end up side by side, so keep to three series or fewer for colors that stay easy to tell apart.

Constructors

TwScatterChart()

public TwScatterChart()

Properties

Connect

Gets or sets whether the points of each series are joined in order (a connected scatter plot).

[Parameter]
public bool Connect { get; set; }

Property Value

bool

Series

Gets or sets the series of points to plot.

[Parameter]
public IReadOnlyList<ChartPointSeries> Series { get; set; }

Property Value

IReadOnlyList<ChartPointSeries>

ShowLabels

Gets or sets whether each point that has a Label shows it beside the dot.

[Parameter]
public bool ShowLabels { get; set; }

Property Value

bool

SizeTitle

Gets or sets the label for a point's size in tooltips and the table view. Defaults to the localized Chart_Size text ("Size").

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

Property Value

string

XTitle

Gets or sets the title of the horizontal axis. It also labels the X value in tooltips and the table view.

[Parameter]
public string XTitle { get; set; }

Property Value

string

YTitle

Gets or sets the title of the vertical axis. It also labels the Y value in tooltips and the table view.

[Parameter]
public string YTitle { get; set; }

Property Value

string

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.