MindFusion.Charting Programmer's Guide

LineChart Class

Remarks See Also
 





A class specified for drawing line, area, bubble and scatter charts.

Namespace: MindFusion.Charting
Assembly: MindFusion.Charting

 Syntax

C#  Copy Code

public class LineChart : AxesChart

Visual Basic  Copy Code

Public Class LineChart
    Inherits AxesChart

JavaScript  Copy Code

// class
LineChart.prototype = {}

 Remarks

LineChart inherits properties and methods from its base class AxesChart.

The class is used for creating line, area, scatter and bubble charts as well different combinations of them. The type of the chart is specified with LineType. The possible values are members of the LineTypes enumeration and allow bitwise combination.

The data for the chart is given with lists that contain numerical or DateTime values. The data can be any format that can safely be converted to numbers or DateTime values using the standard .NET type converters. The data is added to the XData / YData properties, which are of type IList. You can specify values for just one of the XData or YData properties.

Charts can have graphics bound to the second Y-axis. The data for them is set with Y2Data.

Scatter charts get the type of the scatter for each series from the Shapes property. The size of the scatters is set with ShapeSizes. The shapes are drawn with pens and brushes from ShapePens and ShapeBrushes.

The appearance and size options of point shapes for Y2-bound graphics are specified with Y2Shapes, Y2ShapeSizes and Y2ShapePens and Y2ShapeBrushes. The point shapes of summary graphics are customized with SummaryShapes, SummaryShapeSizes, SummaryShapePens and SummaryShapeBrushes.

When drawing area charts, it is possible that some areas, when drawn in the order their data is set, overlap too much. Use the SortSeriesBy property to change the order for drawing the charts.

 Inheritance Hierarchy

System.Object
    MindFusion.Charting.Chart
        MindFusion.Charting.AxesChart
            MindFusion.Charting.LineChart

 See Also