PolarLine Chart

PolarLine chart is a circular line graph. In a polar graph, as in a line graph, data is represented by the location of data markers with relation between points. In a polar line graph, the plot area, where the markers appear, is circular.It can be used to show trends and performance over a period of time.

polar-line-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="Aircraft Current Altitudes"></PrimaryHeader>
    <ExportOptions AllowExportToImage="false" AllowPrint="false" />
    <Legend VerticalAlign="Top" Align="Center"></Legend>
    <Axes>
        <shield:ChartAxisX 
            CategoricalValues="LAC, XDD, LCY, LSS, LGW, DLH, CLH, LUV, LUZ, LCH, LYX, LPR"></shield:ChartAxisX>
        <shield:ChartAxisY Min="0">
        </shield:ChartAxisY>
    </Axes>
    <DataSeries>
        <shield:ChartPolarLineSeries CollectionAlias="Aircraft Altitude">
            <Settings>
                <DataPointText Enabled="true"></DataPointText>
            </Settings>
        </shield:ChartPolarLineSeries>
    </DataSeries>
</shield:ShieldChart>
protected void ShieldChart1_TakeDataSource(object sender, ChartTakeDataSourceEventArgs e)
{
    List datasource = new List() 
    { 
        31000, 34555, 22000, 7000, 27000, 37000, 
        9000, 22000, 35000, 40000, 35000, 37000
    };

    ShieldChart1.DataSource = datasource;
}
  • 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 ChartPolarLineSeries. 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 ChartPolarLineSeries.
  • By default all X values are sorted in order line chart to be shown appropriately, however this behavior is controlled by the EnableValueXSorting property of the ChartPolarLineSeries.
  • The type of the ChartPolarLineSeries can be changed by the Settings.SeriesDashStyle property and it can be set as: Solid, ShortDash, ShortDot, ShortDashDot,Dot, etc.
  • 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 ChartPolarLineSeries are represented with ChartSeriesItem which belongs to the ChartPolarLineSeries.Items collection.
    • The ChartPolarLineSeries.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 ChartPolarLineSeries are contained into the ChartPolarLineSeries.Settings object.
    • The series color can be set via Color property.
    • If the AddToLegend is set to false the series is not added into the legend.
    • The animation of the series can be controlled by ChartPolarLineSeries.Settings.EnableAnimation and ChartPolarLineSeries.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.
    • If the chart has more than one line series they can be ordered by the index set in ChartPolarLineSeries.OrderIndex property.
    • 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.
    • From the Settings.PointMark.ActiveSettings.PointHoveredState object properties you can change the appearance of each line when the user hovers it.
    • 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.