MindFusion.Charting for Silverlight Programmer's Guide
Chart Types

MindFusion.Charting for Silverlight supports the following chart type controls that appear as icons in the VisualStudio toolbox:

Customizing the type of the chart

You can change the type of the chart with LineSeries.LineType, BarSeries.BarType, RadarSeries.RadarStyle and PieSeries.PieType properties. All of them take value from the respective enumerations LineType enum, BarType enum, RadarStyle enum and PieType enum. Radar charts can be radar or polar - use the RadarChart.RadarType property to specify the type. Some chart types require more than one series - BarType.VerticalOverlay, BarType.HorizontalOverlay, BarType.VerticalStack, BarType.HorizontalStack, LineType.Area2DStack. Use the Series property to add the series.

Scatter charts

You can add scatters at data points to any line series. You should only set the LineSeries.ScatterType property of the LineSeries class to be anything different than ScatterType.None, which is its default value. You can draw only scatter charts by setting the LineType of the LineSeries to LineType.None. Scatters can be drawn at data points in radar charts - if you set ShowScatters to true.

Here is a sample that sets the scatter properties in a LineSeries in a line chart. This will be a scatter chart - only scatters will be drawn, no line or area:

C#  Copy Code

LineSeries series = lineChart1.Series[0] as LineSeries;
series.LineType = LineType.None;
series.ScatterType = ScatterType.Diamond;
series.ScatterSize = 13.0;
series.ScatterStrokes.Add(new SolidColorBrush(Colors.DarkGray));
series.ScatterStrokeThickness = 1.0;
series.ScatterFills.Add(new SolidColorBrush(Colors.LightGray));

VB.NET  Copy Code

Dim series As LineSeries = CType(lineChart1.Series(0),LineSeries)
series.LineType = LineType.None
series.ScatterType = ScatterType.Diamond
series.ScatterSize = 13
series.ScatterStrokes.Add(New SolidColorBrush(Colors.DarkGray))
series.ScatterStrokeThickness = 1
series.ScatterFills.Add(New SolidColorBrush(Colors.LightGray))

Pie / Doughnut charts

They support currently a single PieSeries.