Table of Contents

Class ChartScene

Namespace
TwBlazor.Charting
Assembly
TwBlazor.dll

Everything a chart draws, described as data: marks, interactive data points, axes, a legend and a table.

public sealed class ChartScene
Inheritance
ChartScene
Inherited Members

Remarks

A chart type only produces a scene. TwChartBase turns any scene into markup, tooltips, keyboard navigation and the table view, so those concerns live in one place.

Constructors

ChartScene()

public ChartScene()

Properties

Datums

Gets the interactive data points, in keyboard navigation order.

public IReadOnlyList<ChartDatum> Datums { get; init; }

Property Value

IReadOnlyList<ChartDatum>

Empty

Gets a scene with nothing in it.

public static ChartScene Empty { get; }

Property Value

ChartScene

IsEmpty

Gets whether there is nothing to show, so the chart renders its empty state.

public bool IsEmpty { get; }

Property Value

bool

Legend

Gets the legend entries.

public IReadOnlyList<ChartLegendItem> Legend { get; init; }

Property Value

IReadOnlyList<ChartLegendItem>

Marks

Gets the marks, in drawing order.

public IReadOnlyList<IChartMark> Marks { get; init; }

Property Value

IReadOnlyList<IChartMark>

Shape

Gets the proportions of the plot area.

public ChartShape Shape { get; init; }

Property Value

ChartShape

Table

Gets the chart's data as a table.

public ChartTable? Table { get; init; }

Property Value

ChartTable

XAxis

Gets the labels along the bottom of the plot area.

public ChartAxis? XAxis { get; init; }

Property Value

ChartAxis

YAxis

Gets the labels along the left of the plot area.

public ChartAxis? YAxis { get; init; }

Property Value

ChartAxis