MindFusion.Charting Programmer's Guide

AxesChart Class

Remarks See Also
 





A base class for all charts that use the rectangular coordinate system.

Namespace: MindFusion.Charting.WebForms
Assembly: MindFusion.Charting.WebForms

 Syntax

C#  Copy Code

public abstract class AxesChart : Chart

Visual Basic  Copy Code

Public MustInherit Class AxesChart
    Inherits Chart

JavaScript  Copy Code

// class
AxesChart.prototype = {}

 Remarks

AxesChart inherits properties and methods from its base class Chart.

Chart axes can be drawn with a shadow, which length is set with the Depth3D property. Use AxisShadowBrush to set the brush for the axis shadow. AxisPen specifies the pen for the chart axes.

Every axes chart can be drawn with a grid. You can choose among several grid types by using the GridType property. If the grid is Crossed, its density is set with GridWidth. The stripes of the grid are filled with GridBrush and AltGridBrush. The grid is drawn with the GridPen. The outlining of the grid's rectangle is drawn with PlotAreaOutlinePen.

Custom grid points are set with HorGridPoints and VertGridPoints. They are drawn with HorGridPens and VertGridPens. Stripes in custom grids are filled with HorGridBrushes and VertGridBrushes.

Custom grids can have grid labels. They are set wtih XGridLabels, YGridLabels and Y2GridLabels. The orientation of the labels at the X-axis is set with XGridLabelsOrientation. If you want pointers to the grid labels, use GridLabelPointer

The summary graphics or parts of graphics are drawn with SummaryBrushes and SummaryPens. AddCustomSummary method adds a custom summary value to the list of summaries. Graphics, which data is bound to the Y2-axis are drawn with the Y2ChartBrushes and Y2ChartPens.

The AxisSettings class holds the settings for the chart axes - chart label, length, type of axis labels, label prefix and suffix, data formatting and so on. The properties for each chart axis are called XAxisSettings, YAxisSettings and Y2AxisSettings.

The chart data is set with XData and YData. Use Y2Data if you want to draw graphics for the second Y-axis, parallel to the first one. Data can be either numbers or DateTime values or any other format that can safely be converted to numbers / DateTime values using the standard .NET type converters.

Charts can be drawn with an Offset from the start of the coordinate system. The Offset3D property specifies the offset from the axes to the 3D graphics.

 Inheritance Hierarchy

System.Object
    System.Web.UI.Control
        System.Web.UI.WebControls.WebControl
            System.Web.UI.WebControls.BaseDataBoundControl
                System.Web.UI.WebControls.DataBoundControl
                    MindFusion.Charting.WebForms.Chart
                        MindFusion.Charting.WebForms.AxesChart
                            MindFusion.Charting.WebForms.BarChart
                            MindFusion.Charting.WebForms.LineChart

 See Also