Class ChartOptions
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
Represents options which customize the display of a MudChart.
public class ChartOptions
- Inheritance
-
ChartOptions
- Inherited Members
- Extension Methods
Remarks
This class is typically used to control display features of a chart such as: colors, the number of horizontal and vertical ticks, and line smoothing options.
Constructors
ChartOptions()
public ChartOptions()
Properties
ChartPalette
The list of colors applied to series values.
public string[] ChartPalette { get; set; }
Property Value
- string[]
Remarks
Defaults to an array of 20
colors.
InterpolationOption
The technique used to smooth lines.
public InterpolationOption InterpolationOption { get; set; }
Property Value
Remarks
LineStrokeWidth
The width of lines, in pixels.
public double LineStrokeWidth { get; set; }
Property Value
Remarks
MaxNumYAxisTicks
The maximum allowed number of vertical tick marks.
public int MaxNumYAxisTicks { get; set; }
Property Value
Remarks
If the number of ticks calculated exceeds this value, the tick marks will automatically be thinned out.
ShowLegend
Shows the chart series legend.
public bool ShowLegend { get; set; }
Property Value
Remarks
Defaults to true
.
XAxisLines
Shows horizontal axis lines.
public bool XAxisLines { get; set; }
Property Value
Remarks
Defaults to false
.
YAxisFormat
The format applied to numbers on the vertical axis.
public string YAxisFormat { get; set; }
Property Value
Remarks
Values in this property are standard .NET format strings, such as those passed into the ToString()
method. For a list of common formats, see: https://learn.microsoft.com/en-us/dotnet/standard/base-types/formatting-types
YAxisLines
Shows vertical axis lines.
public bool YAxisLines { get; set; }
Property Value
Remarks
Defaults to true
.
YAxisRequireZeroPoint
public bool YAxisRequireZeroPoint { get; set; }
Property Value
YAxisTicks
The spacing between vertical tick marks.
public int YAxisTicks { get; set; }
Property Value
Remarks
Defaults to 20
.