[]
Represents a rectangular zone that highlights a specified data range on the FlexChart.
public class RangeZone : Series, IDisposable, IValueProvider, IRangeZone, ISeries, IStyleProvider
Public Class RangeZone
Inherits Series
Implements IDisposable, IValueProvider, IRangeZone, ISeries, IStyleProvider
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.
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 { SeriesName = "Red Zone", MinX = 2, MaxX = 5, MinY = 10, MaxY = 20 };
zone.Style.Fill = Color.Red;
chart.Series.Add(zone);
| Name | Description |
|---|---|
| RangeZone() | Creates an instance of RangeZone class. |
| RangeZone(Color, Color?, string, double, double, double, double) | Creates an instance of RangeZone with specified parameters. |
| Name | Description |
|---|---|
| MaxXProperty | Identifies the MaxX dependency property. |
| MaxYProperty | Identifies the MaxY dependency property. |
| MinXProperty | Identifies the MinX dependency property. |
| MinYProperty | Identifies the MinY dependency property. |
| 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. |
| Name | Description |
|---|---|
| GetChartType() | Gets actual chart type. |
| GetValues(int) | Gets the point data array for the specified coordinate dimension. |