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

Message ListMessage List     Post MessagePost Message

  Clicking points on Zoomable chart
Posted by Marti A on May-15-2015 02:18
Hello,

I've been using Chartdirector for some time now, and I'm really pleased with the nice charts it can draw, and especially the near infinite Zoom capability, which was a key customer requirement for my web application.

I currently have a program which pulls data from a database, and displays a zoomable / scrollable chart.  This part works fine.  Currently, it uses an imagemap function to map the chart, and if a user clicks on a point, it redirects to another page using this particular coordinate to update a database.

The problem is that what I really need is for a user to be able to click on multiple points, and not redirect to another page until a submit button is clicked.  That way if the user wants to update multiple points on the database the same way it's not necessary to click-update-goback-click-update-goback.

Is this possible with Chartidirector?  I'm thinking that the aspx page which draws the chart needs some other Java code to capture the points as the user clicks them.

My image map call currently looks like:
viewer.ImageMap = c.getHTMLImageMap(forwardpage, queryString);

-Marti Allan

  Re: Clicking points on Zoomable chart
Posted by Peter Kwan on May-16-2015 01:03
Hi Marti A,

There is an example "Javascript Clickable Chart" included in ChartDirector that demonstrates
how to attach Javascript event handlers to the hot spots:

http://www.advsofteng.com/doc/cdnet.htm#jsclickable.htm

The sample code above attached "mouse move" handlers. You can use "onclick" instead so
you can detect when a hot spot is clicked. For the URL, you can leave it empty or use
"javascript:;".

Hope this can help.

Regards
Peter Kwan