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.
EnableSmoothGradient
Enables smooth color transitions for heatmap cells and removes all padding between cells in a HeatMap Defaults to false
public bool EnableSmoothGradient { get; set; }
Property Value
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.
ShowLabels
Enables labels for every box in a HeatMap Defaults to true
public bool ShowLabels { get; set; }
Property Value
ShowLegend
Shows the chart series legend.
public bool ShowLegend { get; set; }
Property Value
Remarks
Defaults to true
.
ShowLegendLabels
Enables label values for the legend boxes in a HeatMap Defaults to false
public bool ShowLegendLabels { get; set; }
Property Value
ShowToolTips
Enables tooltips for values in a HeatMap Defaults to true
public bool ShowToolTips { get; set; }
Property Value
ValueFormatString
The format applied to labels for every box in a HeatMap Defaults to "F2"
public string ValueFormatString { get; set; }
Property Value
XAxisLabelPosition
public XAxisLabelPosition XAxisLabelPosition { get; set; }
Property Value
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/dotnet/standard/base-types/formatting-types
YAxisLabelPosition
public YAxisLabelPosition YAxisLabelPosition { get; set; }
Property Value
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
.