Class ChartScene
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
Empty
Gets a scene with nothing in it.
public static ChartScene Empty { get; }
Property Value
IsEmpty
Gets whether there is nothing to show, so the chart renders its empty state.
public bool IsEmpty { get; }
Property Value
Legend
Gets the legend entries.
public IReadOnlyList<ChartLegendItem> Legend { get; init; }
Property Value
Marks
Gets the marks, in drawing order.
public IReadOnlyList<IChartMark> Marks { get; init; }
Property Value
Shape
Gets the proportions of the plot area.
public ChartShape Shape { get; init; }
Property Value
Table
Gets the chart's data as a table.
public ChartTable? Table { get; init; }
Property Value
XAxis
Gets the labels along the bottom of the plot area.
public ChartAxis? XAxis { get; init; }
Property Value
YAxis
Gets the labels along the left of the plot area.
public ChartAxis? YAxis { get; init; }