WPF Charting Documentation - SciChart WPF Charts SDK v5.x
The Polar charts Type

Polar charts are provided not by a series type, but by an axis type. The PolarXAxis and PolarYAxis transform a standard SciChartSurface into a Polar chart.

Chart Types supported by PolarXAxis and PolarYAxis

The following Chart Types are supported by PolarXAxis and PolarYAxis:

Declaring a Polar Chart in XAML

Declaring a Polar Chart
Copy Code
<!--  Create the chart surface  -->
<s:SciChartSurface Padding="0">
       <s:SciChartSurface.RenderableSeries>
             <s:FastLineRenderableSeries Stroke="#FFF" x:Name="lineSeries"/>
       </s:SciChartSurface.RenderableSeries>

       <s:SciChartSurface.XAxis>
             <s:PolarXAxis AutoRange="Once"
                                    DrawLabels="False"
                                    DrawMajorTicks="False"
                                    DrawMinorTicks="False" />
       </s:SciChartSurface.XAxis>

       <s:SciChartSurface.YAxis>
             <s:PolarYAxis AutoRange="Once"
                                    DrawLabels="False"
                                    DrawMajorTicks="False"
                                    DrawMinorTicks="False"
                                    GrowBy="0,0.2" />
       </s:SciChartSurface.YAxis>

</s:SciChartSurface>

// Code Behind
var dataSeries = new XyDataSeries<double, double>();

// Append data to series. SciChart automatically redraws
dataSeries.Append(someXData, someyData);

lineSeries.DataSeries = dataSeries;

Declaring a Polar Chart in Code

Declaring a Polar Chart
Copy Code
// Declare a SciChartSurface
var sciChartSurface = new SciChartSurface();

// Declare Polar X and Y Axis
sciChartSurface.XAxis = new PolarXAxis();
sciChartSurface.YAxis = new PolarYAxis();

// Declare a line series
var lineSeries = new FastLineRenderableSeries()
{
       Stroke = Colors.White,
       AntiAliasing = true,
       StrokeThickness = 1
};
sciChartSurface.RenderableSeries.Add(lineSeries);

// Declare some data
var dataSeries = new XyDataSeries<double, double>();

// Append data to series. SciChart automatically redraws
dataSeries.Append(someXData, someyData);

 

NOTE: You can also declare Polar Charts using full MVVM (series ViewModels). Please see MVVM DataSeries / RenderableSeries API for more details.

 

 

See Also

 

 


SCICHART ® is a Registered Trademark in the UK, US and EU. Copyright SciChart Ltd 2011-2018.

Email us to give feedback!