MindFusion.Reporting for Silverlight Programmer's Guide
Charts in Reports

MindFusion.Reporting for Silverlight provides a single chart item - a PieChart, which can be used to visualize data as pie charts.

PieChart

The following image illustrates a simple pie chart:

Data

The data to be displayed by the PieChart is provided through its DataSource property. If this property is null (Nothing in Visual Basic) the PieChart raises the QueryDetails event of its containing report passing its DataContext as a master row and uses the return IEnumeration as data source. If QueryDetails did not yield any details, the DataContext is used as a data source.

The TargetMember property of the pie chart specifies the property of the objects in the data source, which will be used for pie plotting.

Appearance

The pie chart inherits some general properties from its base class ReportItem, such as Background, BorderBrush and BorderThickness. Various other properties affect the appearance of the pie pieces, such as Brushes, PieBrush, PieStroke and PieStrokeThickness.