PolarScatter Chart

The PolarScatter chart type is a circular graph on which data points are displayed using the angle, and the distance from the center point. The polar scatter chart position normal scatter points around a polar or radar area.

polar-scatter-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="Weather - Wind/Precipitation Values"></PrimaryHeader>
    <TooltipSettings>
        <AxixMarkers Enabled="true" Mode="XY" Width="2" Color="Red" ZIndex="3" />
    </TooltipSettings>
    <Legend Align="Center" VerticalAlign="Top"></Legend>
    <Axes>
        <shield:ChartAxisY>
            <Title Text="RainFall Quantities"></Title>
        </shield:ChartAxisY>
    </Axes>
    <DataSeries>
        <shield:ChartPolarScatterSeries EnableValueXSorting="false" DataFieldY="ValueX8" 
            DataFieldX="ValueY8" CollectionAlias="January 2008">
        </shield:ChartPolarScatterSeries>
    </DataSeries>
</shield:ShieldChart>
protected void ShieldChart1_TakeDataSource(object sender, ChartTakeDataSourceEventArgs e)
{
    ShieldChart1.DataSource = new object[] 
    {
        new { ValueY8 = 16.4, ValueX8 = 5.4}, 
        new { ValueY8 = 21.7, ValueX8 = 2 }, 
        new { ValueY8 = 25.4, ValueX8 = 3 }, 
        new { ValueY8 = 19,   ValueX8 = 2 }, 
        new { ValueY8 = 10.9, ValueX8 = 1 }, 
        new { ValueY8 = 13.6, ValueX8 = 3.2}, 
        new { ValueY8 = 10.9, ValueX8 = 7.4}, 
        new { ValueY8 = 10.9, ValueX8 = 0 }, 
        new { ValueY8 = 10.9, ValueX8 = 8.23 }, 
        new { ValueY8 = 16.4, ValueX8 = 0 }, 
        new { ValueY8 = 16.4, ValueX8 = 1.8 }, 
        new { ValueY8 = 13.6, ValueX8 = 0.3 }, 
        new { ValueY8 = 13.6, ValueX8 = 0 }, 
        new { ValueY8 = 29.9, ValueX8 = 0 }, 
        new { ValueY8 = 27.1, ValueX8 = 2.3}, 
        new { ValueY8 = 16.4, ValueX8 = 0 }, 
        new { ValueY8 = 13.6, ValueX8 = 3.7}, 
        new { ValueY8 = 10.9, ValueX8 = 5.2}, 
        new { ValueY8 = 16.4, ValueX8 = 6.5}, 
        new { ValueY8 = 10.9, ValueX8 = 0 }, 
        new { ValueY8 = 24.5, ValueX8 = 7.1}, 
        new { ValueY8 = 10.9, ValueX8 = 0 }, 
        new { ValueY8 = 8.1,  ValueX8 = 4.7 }, 
        new { ValueY8 = 19,   ValueX8 = 0 }, 
        new { ValueY8 = 21.7, ValueX8 = 1.8 }, 
        new { ValueY8 = 27.1, ValueX8 = 0 }, 
        new { ValueY8 = 24.5, ValueX8 = 0 }, 
        new { ValueY8 = 27.1, ValueX8 = 0 }, 
        new { ValueY8 = 29.9, ValueX8 = 1.5 }, 
        new { ValueY8 = 27.1, ValueX8 = 0.8 }, 
        new { ValueY8 = 22.1, ValueX8 = 2 }
    };
}
  • 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 ChartPolarScatterSeries. 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 ChartPolarScatterSeries.
  • By default all X values are sorted in order scatter chart to be shown appropriately, however this behavior is controlled by the EnableValueXSorting property of the ChartPolarScatterSeries.
  • 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 ChartPolarScatterSeries are represented with ChartSeriesItem which belongs to the ChartPolarScatterSeries.Items collection.
    • The ChartPolarScatterSeries.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 ChartPolarScatterSeries are contained into the ChartPolarScatterSeries.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 ChartPolarScatterSeries.Settings.EnableAnimation and ChartPolarScatterSeries.Settings.AnimationDuration properties.
    • 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 part 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.