Hi Sergey,
You can simply create an image map entry for the region. For example:
.... create chart as usual .....
.... after makeChart or displaying the chart, generate the image map as follows ....
// Create the image map entry for the x-zone from 18 to 20
char buffer[8192];
sprintf(buffer, "<area shape='rect' coords='%d,%d,%d,%d' title='abc 123 xyz'>",
c->getXCoor(18), c->getPlotArea()->getTopY(), c->getXCoor(20), c->getPlotArea()-
>getBottomY());
// Use the image map
m_ChartViewer.setImageMap(buffer);
If you also have other image map entries, please append the image maps together before
passing it to the m_ChartViewer.
Hope this can help.
Regards
Peter Kwan |