[]
        
(Showing Draft Content)

C1.Blazor.Chart.RangeZone

RangeZone Class

Represents a rectangular zone that highlights a specified data range on the FlexChart.

Inheritance
RangeZone
Implements
IRangeZone
ISeries
IStyleProvider
Namespace: C1.Blazor.Chart
Assembly: C1.Blazor.Chart.dll
Syntax
public class RangeZone : Series, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IRangeZone, ISeries, IStyleProvider
Public Class RangeZone
    Inherits Series
    Implements IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IRangeZone, ISeries, IStyleProvider
Remarks

A RangeZone is defined by the MinX, MaxX, MinY and MaxY properties, which specify the zone's bounds in data coordinates. Any bound left at NaN (the default) extends the zone to the corresponding edge of the axis, so a zone can span a range on one axis while covering the full extent of the other.

Because RangeZone derives from the chart series type, it is added to the chart's Series collection like any other series.

Examples

The following example adds a range zone that highlights the region where X is between 2 and 5 and Y is between 10 and 20:

var zone = new RangeZone { Name = "Red Zone", MinX = 2, MaxX = 5, MinY = 10, MaxY = 20 };
zone.Style = "fill:red;";
chart.Series.Add(zone);

Constructors

Name Description
RangeZone()

Creates an instance of RangeZone class.

Properties

Name Description
MaxX

Gets or sets the range maximum by X coordinate.

MaxY

Gets or sets the range maximum by Y coordinate.

MinX

Gets or sets the range minimum by X coordinate.

MinY

Gets or sets the range minimum by Y coordinate.

Methods

Name Description
GetChartType()

Gets the chart type.

GetValues(int)

Gets the point data array for the specified coordinate dimension.