Class NumericalPlotBand
The NumericalPlotBand class can be used to render plot band using numerical,category, and logarthmic values.This should be used with NumericalPlotBand.
Inherited Members
Namespace: Syncfusion.Maui.Charts
Assembly: Syncfusion.Maui.Charts.dll
Syntax
public class NumericalPlotBand : ChartPlotBand
Remarks
NumericalPlotBand requires Start and End properties to be set to render the Plot band.
# [MainPage.xaml](#tab/tabid-1)<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:CategoryAxis>
<chart:CategoryAxis.PlotBands>
<chart:NumericalPlotBandCollection>
<chart:NumericalPlotBand Start="1" End="2"/>
</chart:NumericalPlotBandCollection>
</chart:CategoryAxis.PlotBands>
</chart:CategoryAxis>
</chart:SfCartesianChart.XAxes>
</chart:SfCartesianChart>
SfCartesianChart chart = new SfCartesianChart();
CategoryAxis xaxis = new CategoryAxis();
NumericalPlotBandCollection bands = new NumericalPlotBandCollection();
NumericalPlotBand plotBand = new NumericalPlotBand();
plotBand.Start = 1;
plotBand.End = 2;
bands.Add(plotBand);
xaxis.PlotBands = bands;
chart.XAxes.Add(xaxis);
Constructors
NumericalPlotBand()
Declaration
public NumericalPlotBand()
Fields
EndProperty
Identifies the End bindable property.
Declaration
public static readonly BindableProperty EndProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
RepeatUntilProperty
Identifies the RepeatUntil bindable property.
Declaration
public static readonly BindableProperty RepeatUntilProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
StartProperty
Identifies the Start bindable property.
Declaration
public static readonly BindableProperty StartProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Properties
End
Gets or sets the end of the plot band, which is considered as screen points or axis range, based on the End
property
Declaration
public double End { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the System.Doublevalue. Its default value is Nan. |
RepeatUntil
Gets or sets the axis value, determining where the plot bands must be repeated on the axis.
Declaration
public double RepeatUntil { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the System.Doubledouble value. |
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:CategoryAxis>
<chart:CategoryAxis.PlotBands>
<chart:NumericalPlotBandCollection>
<chart:NumericalPlotBand Start="1" End="1" RepeatUntil="4" RepeatEvery="2"/>
</chart:NumericalPlotBandCollection>
</chart:CategoryAxis.PlotBands>
</chart:CategoryAxis>
</chart:SfCartesianChart.XAxes>
<!-- ... Eliminated for simplicity-->
</chart:SfCartesianChart>
Start
Gets or sets the axis value representing where the plot bands should start on the axis.
Declaration
public double Start { get; set; }
Property Value
Type | Description |
---|---|
System.Double | This property takes the System.Doubledouble value. |
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:CategoryAxis>
<chart:CategoryAxis.PlotBands>
<chart:NumericalPlotBandCollection>
<chart:NumericalPlotBand Start="1" End="2"/>
</chart:NumericalPlotBandCollection>
</chart:CategoryAxis.PlotBands>
</chart:CategoryAxis>
</chart:SfCartesianChart.XAxes>
<!-- ... Eliminated for simplicity-->
</chart:SfCartesianChart>