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

Message ListMessage List     Post MessagePost Message

  clickable point
Posted by M_Jay on Feb-07-2011 12:38
Attachments:
I want to set all points of my chart  clickable.
When user clicks on each points of the chart1  separate chart2 will be display on the same page according to the point data.
can I display chart1 and chart2 on same page?
mychart.png

  Re: clickable point
Posted by Peter Kwan on Feb-08-2011 00:07
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