Hi M_Jay,
I assume you already know how to make the charts clickable. It is described in the "Clickable Charts" section of the ChartDirector documentation.
When the user clicks the chart, there are multiple methods you can use to create a web page that shows both charts. The followings are some example:
(a) Include an IFRAME in your web page, and target the link to that IFRAME. For example:
//assume xxx is the name of your IFRAME
$imageMap = $c->getHTMLImageMap("createSecondChart.php", "", "target='xxx'");
(b) Structure your code (let called is "abc.php") so that it creates the scatter chart when it is first loaded. When the user clicks a point to the scatter chart, it will link back to the same PHP page "abc.php". The "abc.php" this time can create two charts - the original scatter chart, and another chart based on what the user has clicked.
(c) When the user clicks on a point, run some Javascript to insert an <IMG> tag (or replace an existing <IMG> tag) that contains a link to the second chart.
Hope this can help.
Regards
Peter Kwan |