ChartDirector 5.1 (PHP Edition)

BaseChart.makeChart


Usage

makeChart(filename)

Description

Generates the chart image and save it into a file.

ChartDirector supports PNG, JPG, GIF, WBMP, BMP, SVG and SVGZ. The format used is selected based on file extension, which should be png, jpg, jpeg, gif, wbmp, wmp, bmp, svg or svgz.

Note: To output true vector graphics in SVG or SVGZ format, please ensure BaseChart.enableVectorOutput is called immediately after creating the BaseChart object. Otherwise the output will be a bitmap image embedded in SVG or SVGZ.

Arguments

ArgumentDefaultDescription
filename(Mandatory)The name of the file to save the image.

Return Value

A true (non-zero) value indicates no error. A false (zero) value indicates the operation is unsuccessful.