ChartDirector 6.0 (C++ Edition)



void setImageMap(const char *imageMap);


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

By using an image map, a QChartViewer 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 QChartViewer.getImageMapHandler, can be used to determine if the mouse cursor is over a hot spot and to retrieve the hot spot parameters.


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

Return Value