[]
Represents a rectangular zone that highlights a specified data range on the FlexChart.
public class RangeZone : Series, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IRangeZone, ISeries, IStyleProvider
Public Class RangeZone
Inherits Series
Implements IComponent, IHandleEvent, IHandleAfterRender, IDisposable, 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 { Name = "Red Zone", MinX = 2, MaxX = 5, MinY = 10, MaxY = 20 };
zone.Style = "fill:red;";
chart.Series.Add(zone);
| Name | Description |
|---|---|
| RangeZone() | Creates an instance of RangeZone class. |
| 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 the chart type. |
| GetValues(int) | Gets the point data array for the specified coordinate dimension. |