ChartDirector 6.0 (ColdFusion Edition)

BaseChart.makeChart2


Usage

makeChart2(format)

Description

Generates the chart as an image in memory.

This method is most often used to output the chart directly to an HTTP stream.

ChartDirector supports PNG, JPG, GIF, WBMP and BMP formats, denoted by the following predefined constants:

ConstantValueDescription
PNG0The PNG format.
GIF1The GIF format.
JPG2The JPEG format.
WMP3The WAP bitmap format.
BMP4The BMP format.
SVG5The SVG format.
SVGZ6The compressed SVG format.
PDF7The PDF format.

Arguments

ArgumentDefaultDescription
format(Mandatory)A constant representing the format of the image.

Return Value

A byte array containing the binary image of the chart in the requested format.