ChartScene Class

A chart laid out into drawing primitives, independent of the output format. Plot.CreateScene creates it; SvgChartRenderer and the renderer of Meziantou.Framework.Imaging.Charts draw it.

public sealed class ChartScene

Remarks

The coordinates are in pixels, with the origin at the top-left corner and the y axis pointing down. Angles are in degrees, clockwise.

Constructors

NameDescription
ChartScene(double, double, string)Initializes a new instance of the ChartScene class.

ChartScene(double, double, string)

ChartScene.cs

Initializes a new instance of the ChartScene class.

public ChartScene(double width, double height, string fontFamily)

Parameters

width double
The width of the chart.
height double
The height of the chart.
fontFamily string
The CSS font-family of the texts.

Properties

NameDescription
BackgroundGets or sets the background, or null for a transparent background.
DescriptionGets or sets the accessible description of the chart.
FontFamilyGets the CSS font-family of the texts.
HeightGets the height of the chart.
RootGets the elements of the chart, drawn in order.
TitleGets or sets the accessible name of the chart, usually its title.
WidthGets the width of the chart.

Background

ChartScene.cs

Gets or sets the background, or null for a transparent background.

public ChartColor? Background { get; set; }

Property value

ChartColor?

Description

ChartScene.cs

Gets or sets the accessible description of the chart.

public string? Description { get; set; }

Property value

string?

FontFamily

ChartScene.cs

Gets the CSS font-family of the texts.

public string FontFamily { get; }

Property value

string

Gets the height of the chart.

public double Height { get; }

Property value

double

Gets the elements of the chart, drawn in order.

public SceneGroup Root { get; }

Property value

SceneGroup

Gets or sets the accessible name of the chart, usually its title.

public string? Title { get; set; }

Property value

string?

Gets the width of the chart.

public double Width { get; }

Property value

double