ChartDirector 6.0 (ColdFusion Edition)

JsChartViewer.setAutoResizeImageMap


Usage

setAutoResizeImageMap(b)

Description

Determines if the automatically resize the image map.

Image maps are standard HTML <area> tags used to define hot spots on images. In ChartDirector, BaseChart.getHTMLImageMap can be used to automatically create image maps for the charts.

However, as according to HTML standard, an image map is only valid for a specific HTML pixel size (which is the size in CSS pixel units). If the image is resized to a different CSS pixel size, the image map will no longer be valid. Note that zooming in or out a web page with a browser will not affect the CSS pixel size, so the image map will remain valid. However, if the chart image is designed to resize to fit the browser window (which is common in mobile web page designs), it would mean the CSS pixel size has changed, and the image map will no longer be valid.

The setAutoResizeImageMap method can be used to automatically detect if the chart image CSS pixel size has changed, and modifies the image map so that it remains valid.

Arguments

ArgumentDefaultDescription
b(Mandatory)True to automatically resize the image map, false otherwise.

Return Value

None