ChartDirector 5.1 (PHP Edition)

DrawArea.outSVG2


Usage

outSVG2([ options ])

Description

Writes the DrawArea as a SVG or SVGZ image to memory.

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

Arguments

ArgumentDefaultDescription
options""A text string specifying optional parameters for the SVG output. Currently, the only supported text string is "compress", which means to create a SVGZ (compressed SVG) instead of a regular SVG.

Return Value

A string containing the SVG or SVGZ image.