The following diagram shows the main objects provided by Aspose.Chart:
The following picture demonstrates how Aspose.Chart classes correspond to the resulting chart elements:
Major classes necessary for creating a chart are briefly described below.
Chart
Chart is the crucial class encapsulating all necessary properties and methods for creating a chart. It allows producing charts of different types such as bar, bubble, line, and many others.
Chart contains a SeriesCollection object that represents a collection of Series objects, each of which, in turn, contains a set of data points that serve for creating the chart.
Chart contains one or more chart areas. Each of them has its own axes, grids, and so on, and each Series belongs to a particular chart area. One chart area is represented by the ChartArea class and multiple chart areas are represented by the ChartAreas collection. The default chart area object is returned by the Chart.ChartArea property and the areas collection is returned by the Chart.ChartAreas property.
Chart provides methods to save the produced chart in the image or Macromedia Flash format.
ChartArea
ChartArea is a rectangular area with a single chart drawing. ChartArea provides primary and secondary X and Y axes represented by the Axis objects. Each Axis has smaller objects used for setting up the axis appearance, such as tick marks, axis labels, and grids.
ChartArea has a number of properties such as position, angles of rotation, background color, and so on.
ChartArea may be either in 2D or 3D mode that affects representation of the associated data series.
Series
Series represents a series of data. It holds a collection of the DataPoint objects. Each DataPoint is a single data point on the chart. Series also provides the DefaultDataPoint property that returns a DataPoint with all properties set to default.
Series refers to the ChartArea object it belongs to.
DataPoint
DataPoint represents a single data point in a data series. A data point may have one X value (coordinate) and one or more Y values (coordinates). DataPoint provides a number of properties such as name, font, color, label, and so on.