ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  setHTMLImageMap on Piechart
Posted by Tim Faase on Feb-11-2011 17:21
Is it possible to somehow set the HTMLImageMap on a PieChart?

We are using this for XYCharts with the linelayer and barlayer, but we do not seem to be able to do this with a PieChart, since this does not use any layers.

In the final stage of chart presentation we use the baseChart.getHTMLImageMap to set the map parameter in html. Now we have to do a step before this specifically for PieCharts.

Any suggestions?

  Re: setHTMLImageMap on Piechart
Posted by Peter Kwan on Feb-12-2011 06:57
Hi Tim,

The intention of the setHTMLImageMap is allow people to set different image map parameters for different data representations. For example, the image map parameters for a scatter layer may be different from a trend line layer, yet they can exist on the same XYChart. The setHTMLImageMap only exists in Layer objects, and not in the chart object (XYChart, PolarChart, PieChart, etc) itself.

For a pie chart, there is only one data series, so setHTMLImageMap is never needed.

In your case, you seem to want to use setHTMLImageMap just as to store values, so that you can use it later. For storing values, you may simply use normal variables. For example, you may store the image map parameters you want to use in variables, then use it in getHTMLImageMap later.

Hope this can help.

Regards
Peter Kwan