PolarArea Chart

PolarArea chart compares the relationship of angles and distances. You can use polar area graphs in particular to see general relationships among a number of items.

polar-area-graph

The chart from the image above is created with the following code:

<shield:ShieldChart ID="ShieldChart1" Width="100%" Height="400px" runat="server" 
    OnTakeDataSource="ShieldChart1_TakeDataSource"
    CssClass="chart">
    <PrimaryHeader Text="Steel PRoduction"></PrimaryHeader>
    <ExportOptions AllowExportToImage="false" AllowPrint="false" />
    <Legend Align="Center" VerticalAlign="Top"></Legend>
        <Axes>
        <shield:ChartAxisX 
            CategoricalValues="2002, 2003, 2004, 2005, 2006, 2007, 2008, 
            2009, 2010, 2011"></shield:ChartAxisX>
    </Axes>
    <DataSeries>
        <shield:ChartPolarAreaSeries DataFieldY="GermanyValue" CollectionAlias="Germany">
        </shield:ChartPolarAreaSeries>
        <shield:ChartPolarAreaSeries DataFieldY="FranceValue" CollectionAlias="France">
        </shield:ChartPolarAreaSeries>
    </DataSeries>
</shield:ShieldChart>
protected void ShieldChart1_TakeDataSource(object sender, ChartTakeDataSourceEventArgs e)
{
    List datasource = new List() 
    { 
        new ChangesPerRegion() { GermanyValue = 3.585, FranceValue=1.351 },
        new ChangesPerRegion() { GermanyValue = 3.415, FranceValue=1.290 },
        new ChangesPerRegion() { GermanyValue = 3.814, FranceValue=1.337 },
        new ChangesPerRegion() { GermanyValue = 3.568, FranceValue=1.245 },
        new ChangesPerRegion() { GermanyValue = 3.654, FranceValue=1.424 },
        new ChangesPerRegion() { GermanyValue = 3.536, FranceValue=1.378 },
        new ChangesPerRegion() { GermanyValue = 3.397, FranceValue=1.310 }
    };

    ShieldChart1.DataSource = datasource;
}

private class ChangesPerRegion
{
    public double GermanyValue { get; set; }
    public double FranceValue { get; set; }
}   
  • When the chart is bound to collection of objects the X values are got by the field which name is set into the DataFieldX property of the ChartPolarAreaSeries. The Y values are got by the field which name is set into the DataFieldY property.
  • The name that is shown in the legend is chosen via the CollectionAlias property of the ChartPolarAreaSeries.
  • By default all X values are sorted in order area chart to be shown appropriately, however this behavior is controlled by the EnableValueXSorting property of the ChartPolarAreaSeries.
  • DataStart and DataStep properties control the start value of the x axis and explicit value for the interval between a data series member values.
  • All points from the ChartPolarAreaSeries are represented with ChartSeriesItem which belongs to the ChartPolarAreaSeries.Items collection.
    • The ChartPolarAreaSeries.Items can 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.AppendDataBoundItems property need to be set to "true".
  • All setting related to ChartPolarAreaSeries are contained into the ChartPolarAreaSeries.Settings object.
    • The background and line color can be set via Color and InnerColor properties.
    • If the AddToLegend is set to false the series is not added into the legend.
    • The animation of the series can be controlled by ChartPolarAreaSeries.Settings.EnableAnimation and ChartPolarAreaSeries.Settings.AnimationDuration properties.
    • If some values are missing (i.e. they are null/Nothing) from the series data you can have the chart work around this by setting the DrawNullValues property.
    • The series of multiline area chart can be stacked by setting the StackMode property to Normal or Percent.
    • Each point from the series can be selected if the EnablePointSelection property is set to true.
    • All selected points can be customized by Settings.PointMark.ActiveSettings.PointSelectedState object properties.
    • Each series has related tooltip which can be customized via the Settings.Tooltip object.
    • Each point from the series can have related text, which appearance is controlled by Settings.DataPointText property. You can changeBackgroundColor, BorderColor, Color, Padding, and TextAngle of the corresponding data point text.