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

Message ListMessage List     Post MessagePost Message

  interactive multicharts
Posted by ray on Jan-06-2015 12:30
is it possible to use getHTMLImageMap on a multichart containing two different types of charts (e.g. stock chart and scatter plot)?

  Re: interactive multicharts
Posted by Peter Kwan on Jan-07-2015 02:25
Hi Ray,

Yes. If you are using a MultiChart, you create the two image maps of the two XYChart
separately, and then simply concatenate them together. For example, in Java, it is like:

// There are two charts
XYChart c1 = ......;
XYChart c2 = ......;


MultiChart m = .....;
m.addChart(10, 30, c1);   // c1 added at (10, 30)
m.addChart(20, 400, c2);  // c2 added at (20, 400)
.....


// The two image maps for the two charts, using the same position that the charts
// are added to the MultiChart
String imageMap1 = c1.getHTMLImageMap("", "", "title='xxxx'", 10, 30);
String imageMap2 = c2.getHTMLImageMap("", "", "title='yyyy'", 20, 400);

// Simple concatenate them together
String imageMap = imageMap1 + imageMap2;

Hope this can help.

Regards
Peter Kwan

  Re: interactive multicharts
Posted by ray on Jan-07-2015 06:05
brilliant.

thanks for the help.