Class DateTimePlotBand
The DateTimePlotBand class can render the plot band using the DateTime values.
Inherited Members
Namespace: Syncfusion.Maui.Toolkit.Charts
Assembly: Syncfusion.Maui.Toolkit.dll
Syntax
public class DateTimePlotBand : ChartPlotBand
Remarks
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:DateTimeAxis>
<chart:DateTimeAxis.PlotBands>
<chart:DateTimePlotBandCollection>
<chart:DateTimePlotBand Start="2000-01-01" Size="2" SizeType="Month"/>
</chart:DateTimePlotBandCollection>
</chart:DateTimeAxis.PlotBands>
</chart:DateTimeAxis>
</chart:SfCartesianChart.XAxes>
</chart:SfCartesianChart>
Constructors
DateTimePlotBand()
Declaration
public DateTimePlotBand()
Fields
EndProperty
Identifies the End bindable property.
Declaration
public static readonly BindableProperty EndProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The identifier for the End bindable property determines the end date and time of the plot band.
RepeatEveryTypeProperty
Identifies the RepeatEveryType bindable property.
Declaration
public static readonly BindableProperty RepeatEveryTypeProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The identifier for the RepeatEveryType bindable property determines the interval type for the repetition of the plot band.
RepeatUntilProperty
Identifies the RepeatUntil bindable property.
Declaration
public static readonly BindableProperty RepeatUntilProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The identifier for the RepeatUntil bindable property determines the date and time until which the plot band repeats.
SizeTypeProperty
Identifies the SizeType bindable property.
Declaration
public static readonly BindableProperty SizeTypeProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The identifier for the SizeType bindable property determines the interval type for the size of the plot band.
StartProperty
Identifies the Start bindable property.
Declaration
public static readonly BindableProperty StartProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Remarks
The identifier for the Start bindable property determines the start date and time of the plot band.
Properties
End
Gets or sets the axis value representing where the plot band should end on the axis.
Declaration
public Nullable<DateTime> End { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | This property takes System.DateTime as its value and the default value is null. |
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:DateTimeAxis>
<chart:DateTimeAxis.PlotBands>
<chart:DateTimePlotBandCollection>
<chart:DateTimePlotBand Start="2000-01-01" End="2000-02-02"/>
<chart:DateTimePlotBandCollection>
</chart:DateTimeAxis.PlotBands>
</chart:DateTimeAxis>
</chart:SfCartesianChart.XAxes>
<!-- ... Eliminated for simplicity-->
</chart:SfCartesianChart>
RepeatEveryType
Gets or sets the date time unit of the value specified in the RepeatEvery property.
Declaration
public DateTimeIntervalType RepeatEveryType { get; set; }
Property Value
Type | Description |
---|---|
DateTimeIntervalType | This property takes the DateTimeIntervalType value and the default value is Auto. |
Remarks
If RepeatEveryType is auto, it will take the default interval from the dateTime axis.
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:DateTimeAxis>
<chart:DateTimeAxis.PlotBands>
<chart:DateTimePlotBandCollection>
<chart:DateTimePlotBand Start="2000-01-01" End="2000-02-02" SizeType="Months" RepeatEveryType="Days"/>
</chart:DateTimePlotBandCollection>
</chart:DateTimeAxis.PlotBands>
</chart:DateTimeAxis>
</chart:SfCartesianChart.XAxes>
<!-- ... Eliminated for simplicity-->
</chart:SfCartesianChart>
RepeatUntil
Gets or sets the axis value that determines how long the plot band will be repeated along the axis.
Declaration
public Nullable<DateTime> RepeatUntil { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | This property takes System.DateTime as its value and the default value is null. |
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:DateTimeAxis>
<chart:DateTimeAxis.PlotBands>
<chart:DateTimePlotBandCollection>
<chart:DateTimePlotBand Start="2000-01-01" End="2000-02-02" RepeatUntil="2000-03-01"/>
<chart:DateTimePlotBandCollection>
</chart:DateTimeAxis.PlotBands>
</chart:DateTimeAxis>
</chart:SfCartesianChart.XAxes>
<!-- ... Eliminated for simplicity-->
</chart:SfCartesianChart>
SizeType
Gets or sets the date time unit specified in the SizeType property to determine the size of the plot band.
Declaration
public DateTimeIntervalType SizeType { get; set; }
Property Value
Type | Description |
---|---|
DateTimeIntervalType | This property takes the DateTimeIntervalType value and the default value is Auto. |
Remarks
If SizeType is auto, it will take the default interval from the dateTime axis.
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:DateTimeAxis>
<chart:DateTimeAxis.PlotBands>
<chart:DateTimePlotBandCollection>
<chart:DateTimePlotBand Start="2000-01-01" End="2000-02-02" SizeType="Months"/>
</chart:DateTimePlotBandCollection>
</chart:DateTimeAxis.PlotBands>
</chart:DateTimeAxis>
</chart:SfCartesianChart.XAxes>
<!-- ... Eliminated for simplicity-->
</chart:SfCartesianChart>
Start
Gets or sets the axis value representing where the plot band should start on the axis.
Declaration
public Nullable<DateTime> Start { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | This property takes System.DateTime as its value and the default value is null. |
Examples
<chart:SfCartesianChart>
<chart:SfCartesianChart.XAxes>
<chart:DateTimeAxis>
<chart:DateTimeAxis.PlotBands>
<chart:DateTimePlotBandCollection>
<chart:DateTimePlotBand Start="2000-01-01" Size="2"/>
</chart:DateTimePlotBandCollection>
</chart:DateTimeAxis.PlotBands>
</chart:DateTimeAxis>
</chart:SfCartesianChart.XAxes>
<!-- ... Eliminated for simplicity-->
</chart:SfCartesianChart>