RangeArea Chart
RangeArea series are similar to Area series, however they are not bound to start from the zero value on the y intercept. They are useful for representing range data, such as high and low values.

The chart from the image above is created with the following code:
<shield:ShieldChart ID="ShieldChart1" runat="server" Width="580px" Height="400px"
OnTakeDataSource="ShieldChart1_TakeDataSource" CssClass="chart">
<PrimaryHeader Text="Currency rates">
</PrimaryHeader>
<TooltipSettings>
<AxixMarkers Enabled="true" Mode="X" Width="1" ZIndex="3"/>
</TooltipSettings>
<Legend Align="Center" VerticalAlign="Top">
</Legend>
<Axes>
<shield:ChartAxisX AxisType="Datetime">
</shield:ChartAxisX>
</Axes>
<DataSeries>
<shield:ChartRangeAreaSeries CollectionAlias="USD/EUR low/high values"
DataFieldLow="low" DataFieldHigh="high">
<Settings EnableAnimation="false">
<Tooltip CustomPointText="Low:<b>{point.low}</b></br>High:<b>{point.high}</b>">
</Tooltip>
</Settings>
</shield:ChartRangeAreaSeries>
</DataSeries>
</shield:ShieldChart>
protected void ShieldChart1_TakeDataSource(object sender, ChartTakeDataSourceEventArgs e)
{
ShieldChart1.DataSeries[0].DataStart = (decimal)(new DateTime(2013, 5, 5) - new DateTime(1970, 1, 1)).TotalMilliseconds;
ShieldChart1.DataSeries[0].DataStep = 24 * 3600 * 1000;
ShieldChart1.DataSource = new object[]
{
new { low = 1.3147, high = 1.3254 },
new { low = 1.3161, high = 1.3300 },
new { low = 1.3262, high = 1.3416 },
new { low = 1.3326, high = 1.3416 },
new { low = 1.3318, high = 1.3381 },
new { low = 1.3343, high = 1.3358 },
new { low = 1.3296, high = 1.3374 },
new { low = 1.3279, high = 1.3391 },
new { low = 1.3267, high = 1.3359 },
new { low = 1.3233, high = 1.3318 },
new { low = 1.3177, high = 1.3270 },
new { low = 1.3187, high = 1.3222 },
new { low = 1.3193, high = 1.3285 },
new { low = 1.3075, high = 1.3306 },
new { low = 1.3054, high = 1.3116 },
new { low = 1.3042, high = 1.3101 },
new { low = 1.2956, high = 1.3108 },
new { low = 1.2985, high = 1.3000 },
new { low = 1.2945, high = 1.3049 },
new { low = 1.2934, high = 1.3061 },
new { low = 1.2837, high = 1.2976 },
new { low = 1.2841, high = 1.2950 },
new { low = 1.2915, high = 1.2949 },
new { low = 1.2934, high = 1.2943 },
new { low = 1.2905, high = 1.2994 },
new { low = 1.2821, high = 1.2956 },
new { low = 1.2834, high = 1.2998 }
};
}
- When the chart is bound to collection of objects the X values are got by the field which name is set into the
DataFieldXproperty of theChartRangeAreaSeries. The low and high values are got by the fields which names are set into theDataFieldLowandDataFieldHigh. - The name that is shown in the legend is chosen via the
CollectionAliasproperty of theChartRangeAreaSeries. - By default all X values are sorted in order rangearea chart to be shown appropriately, however this behavior is controlled by the
EnableValueXSortingproperty of theChartRangeAreaSeries. - The line type of the
ChartRangeAreaSeriescanbe changed by theSettings.SeriesDashStyleproperty and it can be set as:Solid,ShortDash,ShortDot,ShortDashDot,Dot, etc. DataStartandDataStepproperties control the start value of the x axis and explicit value for the interval between a data series member values.- All points from the
ChartRangeAreaSeriesare represented withChartSeriesItemwhich belongs to theChartRangeAreaSeries.Itemscollection.- The
ChartRangeAreaSeries.Itemscan be added declarative without data binding. - The data binding and declarative approach can be mixed. However in order declarative items to be appended to the items created from the datasource the
ShieldChart.AppendDataBoundItemsproperty need to be set to"true".
- The
- All setting related to
ChartRangeAreaSeriesare contained into theChartRangeAreaSeries.Settingsobject.- o The background and line color can be set via
ColorandInnerColorproperties. - If the
AddToLegendis set to false the series is not added into the legend. - The animation of the series can be controlled by
ChartRangeAreaSeries.Settings.EnableAnimationandChartRangeAreaSeries.Settings.AnimationDurationproperties. - Each point from the series can be selected if the
EnablePointSelectionproperty is set to true. - All selected points can be customized by
Settings.PointMark.ActiveSettings.PointSelectedStateobject properties. - From the
Settings.PointMark.ActiveSettings.PointHoveredStateobject properties you can change the appearance of each part when the user hovers it. - Each series has related tooltip which can be customized via the
Settings.Tooltipobject. - Each point from the series can have related text, which appearance is controlled by
Settings.DataPointTextproperty. You can changeBackgroundColor,BorderColor,Color,Padding, andTextAngleof the corresponding data point text.
- o The background and line color can be set via
