ChartDirector 7.1 (C++ Edition)
DrawArea.
Usage
Description
Raster Image Option | Type | Description |
---|---|---|
bmpScale | Attribute | Render the chart with a scale factor. For example, "bmpScale=1.5" means the chart size will be 1.5 times of the original. The supported bmpScale is 0.1 to 3. |
SVG Option | Type | Description |
---|---|---|
compress | Flag | Compressed the SVG, that is, output SVGZ. |
noxmldecl | Flag | Do not include the xml declaration line "<?xml version="1.0" .... >" in the SVG. |
nodoctype | Flag | Do not include the document type declaration line "<!DOCTYPE svg PUBLIC .... >" in the SVG. |
width | Flag / Attribute | Specifies the width attribute of the SVG. By default, ChartDirector will not include the width or height attribute in the SVG output. In this case, the SVG is variable in size and would assume the size of its container. For example, if the SVG is inside a <DIV> block in a web page, it will assume the size of the DIV block. If the "width" option is used as a flag, ChartDirector will include the width attribute in the SVG and set it to the chart width. If the "width" option is used as an attribute (such as "width=800"), ChartDirector will include the width attribute in the SVG and set it to the specified value. The specified value should be some text that is valid as SVG width. Examples are "100" and "75%". |
height | Flag / Attribute | Specifies the height attribute of the SVG. See the description on "width" above on how to use it. |
PDF Option | Type | Description |
---|---|---|
width | Attribute | The width of the chart in the PDF in pixel unit. By default, ChartDirector will use the pixel width of the chart as the width of the chart in PDF. The "width" attribute can be used to specify an alternative value. The value must be a number. |
height | Attribute | The width of the chart in the PDF in pixel unit. See the description on "width" above for how to use it. |
pagewidth | Attribute | The page width in pixel unit. By default, ChartDirector will set the page width to the same width as the chart. The "pagewidth" attribute can be used to specify an alternative value. The value must be a number. |
pageheight | Attribute | The page height in pixel unit. By default, ChartDirector will set the page height to the same height as the chart. The "pageheight" attribute can be used to specify an alternative value. The value must be a number. |
leftx | Attribute | The x coordinate of the left side of the chart within the page in pixel unit. By default, ChartDirector will center the chart in the page. The "leftx" attribute can be used to specify an alternative horizontal position. The coordinate must be a number. |
topy | Attribute | The y coordinate of the top side of the chart within the page in pixel unit. By default, ChartDirector will center the chart in the page. The "topy" attribute can be used to specify an alternative vertical position. The coordinate must be a number. |
dpi | Attribute | Specify the factor for conversion from pixel to physical unit. The PDF viewer will convert the pixel unit into physical unit (eg. inches) so that it can be layout on paper or other physical media. The default conversion factor for the chart is 96 pixels per inch. The "dpi" attribute can be used to specify an alternative value. The value must be a number. |
Arguments
Argument | Default | Description |
---|---|---|
options | (Mandatory) | A list of options delimited by semicolons. |
Return Value