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
Series
Gets or sets the series of points to plot.
[Parameter]
public IReadOnlyList<ChartPointSeries> Series { get; set; }
Property Value
ShowLabels
Gets or sets whether each point that has a Label shows it beside the dot.
[Parameter]
public bool ShowLabels { get; set; }
Property Value
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
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
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
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
builderChartSceneBuilderThe builder that collects the scene.