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

Message ListMessage List     Post MessagePost Message

  Clickable and zoomable chart in Java Jsp
Posted by vr80 on Dec-23-2009 18:16
Is possble to make a  scatter layer chart (Java JSP) that is clickable and zoomable?

  Re: Clickable and zoomable chart in Java Jsp
Posted by Peter Kwan on Dec-23-2009 20:01
Hi vr80,

Since ChartDirector Ver 4.1, there are two JSP "Zoomable and Scrollable Charts" sample code included in the ChartDirector download. Please refer to the "Zoomable and Scrollable Charts" section of the ChartDirector documentation for details. The second "Zoomable and Scrollable Charts" sample code is a scatter chart.

Hope this can help.

Regards
Peter Kwan

  Re: Clickable and zoomable chart in Java Jsp
Posted by vr80 on Dec-23-2009 22:48
How  can I make it clickable?

  Re: Clickable and zoomable chart in Java Jsp
Posted by Peter Kwan on Dec-23-2009 23:52
Hi vr80,

I think you just need to provide a URL to getHTMLImageMap.

In the original code, it is like:

    String imageMap = c.getHTMLImageMap("", "",
        "title='[{dataSetName}] Alpha = {x|G}, Beta = {value|G}'");

You can modify it to:

    String imageMap = c.getHTMLImageMap("ddd.jsp", "",
        "title='[{dataSetName}] Alpha = {x|G}, Beta = {value|G}'");

Note that if the mouse is used for zooming, when you click on the chart, it will zoom to the point that you click on. If the mouse is not used for zooming (eg. in "Pointer" mode which is used for dragging), when the mouse clicks on the hot spot, it will jump to the URL you specified.

Hope this can help.

Regards
Peter Kwan

  Re: Clickable and zoomable chart in Java Jsp
Posted by vr80 on Jan-05-2010 18:05
Ok, tank you very much.