MindFusion.Charting Programmer's Guide

Chart Class

Remarks See Also
 





Base class for all chart types - bars, pies, areas, lines, or radars.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public abstract class Chart : ICloneable

Visual Basic  Copy Code

Public MustInherit Class Chart Implements ICloneable

JavaScript  Copy Code

// class
Chart.prototype = {}

 Remarks

This class is the base class for all chart types - bar, pie, lines and radar and all their modifications - scatter, cylinder, polar and so on. It provides methods, properties and events for supplying data for drawing the chart and setting different chart customization options.

Each chart type has its own properties for setting the data. The chart series are drawn in the order the data for them is set. If you want to sort the series relatively to each other, use the SortSeriesBy property. SortOrder sorts the numbers in each series. Use ClearData to remove all data and labels from the chart.

ChartBrushes sets the brushes used for drawing all chart types. ChartPens property defines the pens, used for drawing the charts.

The font and brush for the chart labels are specified with the LabelFont and LabelBrush properties.

All charts can have a title and a subtitle. They are set with TitleText and SubTitleText. TitleFont, TitleBrush, SubTitleFont and SubTitleBrush properties specify the font and brush for the title and the subtitle. The TextRenderingHint property sets the quality of rendering for the chart texts.

The chart background is painted with the BackgroundBrush property.

 Inheritance Hierarchy

System.Object
    MindFusion.Charting.Chart
        MindFusion.Charting.AxesChart
        MindFusion.Charting.PieChart
        MindFusion.Charting.RadarChart

 See Also