Mark Class

A layer of a Plot that draws its data with shapes: bars, lines, dots, arcs... The positions, colors and sizes of the shapes are channels, mapped by the scales of the plot.

public abstract class Mark

Properties

NameDescription
CssClassGets or sets the CSS class of the group of the mark in the SVG output.
OpacityGets or sets the opacity of the mark, from 0 to 1. The default is 1.
UseSecondaryYScaleGets or sets a value that indicates whether the y channels of the mark use the secondary y scale of the plot (Plot.SecondaryYScale), whose axis is on the right, instead of the y scale. Use it to draw two measures of different units in one chart, such as amounts and a growth rate.

CssClass

Mark.cs

Gets or sets the CSS class of the group of the mark in the SVG output.

public string? CssClass { get; set; }

Property value

string?

Opacity

Mark.cs

Gets or sets the opacity of the mark, from 0 to 1. The default is 1.

public double Opacity { get; set; }

Property value

double

UseSecondaryYScale

Mark.cs

Gets or sets a value that indicates whether the y channels of the mark use the secondary y scale of the plot (Plot.SecondaryYScale), whose axis is on the right, instead of the y scale. Use it to draw two measures of different units in one chart, such as amounts and a growth rate.

public bool UseSecondaryYScale { get; set; }

Property value

bool