Search Results for

    Show / Hide Table of Contents

    TExcelFile.AddChart Method

    This method will add a chart to the active sheet. You can then add series and customize the returned ExcelChart object.

    Important: This method only works in xlsx files.

    Syntax

    Unit: FlexCel.Core

    function TExcelFile.AddChart(objProps: IShapeProperties; const chartType: TChartType; const aChartStyle: TChartStyle; const roundedCorners: Boolean): IExcelChart; virtual; abstract;

    Parameters

    <-> Parameter Type Description
    objProps IShapeProperties Place where the chart will be placed and characteristics like if it is printable or not.
    const chartType TChartType Kind of chart created. Note that you can have more than one type of chart in the same chart, so this just sets the base chart type. You can add other chart types over it.
    const aChartStyle TChartStyle Theme of the chart.

    This is a number between 1 and 48 which defines many standard properties for the chart, like the default line width for the series or the legend.
    The default style is 2.
    const roundedCorners Boolean If true, the chart will have rounded corners.

    See also

    • TExcelFile
    In This Article
    Back to top FlexCel Studio for VCL and FireMonkey v7.24
    © 2002 - 2025 tmssoftware.com