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

Message ListMessage List     Post MessagePost Message

  Cickable Chart
Posted by Mojibul on Aug-29-2009 22:15
Hi,

I have a question regarding clickable chart. for example if I click on a bar of bar graph then I can see another plot but the previous one disappear. Is it possible that new chart after click will appear just bellow the main plot. i.e If main plot is in the first row of a table then the chart which will be created after click will be plotted in the second row of the table.

Waiting for your response.

Thanks and Regards

Mojibul

  Re: Cickable Chart
Posted by Peter Kwan on Sep-01-2009 00:49
Hi Mojibul,

Yes. You can achieve this with normal HTML/Javascript.

First, you need to know how to write a web page, such that if a user clicks on something on the top row (not necessarily a chart, it can be just a hypertext link), some other web page (or part of a web page) is displayed on the second row. The details depend on your web framework (or AJAX framework if you use one). You may refer to your HTML/Javascript and your web/AJAX framework documentation for details.

There is a sample code "Javascript Clickable Chart" included in ChartDirector, which demonstrates how to connect Javascript events to the hot spots. In the sample code, the Javascript event handler draws a table under the chart when the mouse is over a hot spot. For your case, you can write a Javascript mouse click handler to display another chart under the original chart. In the simplest case, you can draw an IFRAME or IMG tag under the original chart, with a URL that retreives the other chart from the server.

Hope this can help.

Regards
Peter Kwan