ChartDirector 6.0 (C++ Edition)

CChartViewer.setImageMap


Usage

void setImageMap(const char *imageMap);

Description

Sets the image map that defines the hot spots on the chart image.

By using an image map, a CChartViewer object can be configured to display tool tips specific to the hot spots when the mouse is over the hot spots. The mouse cursor can also change to a "hand" shape to provide visual feedback for clickable hot spots. A clickable hot spot is defined as a hot spot with a non-empty path attribute.

BaseChart.getHTMLImageMap can be used to generated image maps for charts automatically.

The ImageMapHandler object, accessible via CChartViewer.getImageMapHandler, can be used to determine if the mouse cursor is over a hot spot and to retrieve the hot spot parameters.

Arguments

ArgumentDefaultDescription
imageMap(Mandatory)The image map that defines the hot spots.

Return Value

None