Reports for WinForms | ComponentOne
Working with C1ReportDesigner / Charting in Reports / Chart Properties
In This Topic
    Chart Properties
    In This Topic

    The appearance of charts can be customized by using several other chart properties provided by the Chart field. Few chart properties that are commonly used are as follows:

    These properties apply to all chart types. There are some additional properties which are specific to the chart types.

    The following properties apply only to Pie charts:

    The following properties apply to Radar charts:

    The following properties apply to Polar charts:

    The following properties apply only to Histogram charts, exposed by HistogramOptions:

    The Chart field is actually a wrapper for a C1Chart control, which provides all the charting services and has an extremely rich object model of its own. If you want to customize the Chart field even further, you can use the ChartControl property to access the inner C1Chart object using scripts.

    For example, the Chart field does not have a property to control the position of the legend. But the C1Chart control does, and you can access this property through the ChartControl property. For example, the script below causes the chart legend to be positioned below the chart instead of on the right:

    ' place legend below the chart
    chartField.ChartControl.Legend.Compass = "South"

    If you assign this script to the report's OnLoad property, the chart will look like the image below:

    The other properties used to create these chart are as follows:

    ChartType = Pie
    FormatY = "p1"
    ShowPercentage = true
    Palette
    = "Red;Gold;Orange;Beige;DarkGoldenrod;Goldenrod;"