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

Message ListMessage List     Post MessagePost Message

  Clickable Axis Labels in Ganttchart - Java
Posted by Bas on Nov-08-2013 23:26
Hi Peter

Would you have a snippet of JSP code for making the x-axis labels hyperlinked in a Gantt Chart? I don't think it is available in the sample code.

Thanks a lot in advance

Bas

  Re: Clickable Axis Labels in Ganttchart - Java
Posted by Peter Kwan on Nov-09-2013 01:32
Hi Bas,

I think you just need to add the image map for the x-axis.

For example, in the original sample code, the image map is:

String imageMap1 = c.getHTMLImageMap("", "",
    "title='{xLabel}: {top|mmm dd, yyyy} to {bottom|mmm dd, yyyy}'");

You may modify it to:

String imageMap1 = c.getHTMLImageMap("", "",
    "title='{xLabel}: {top|mmm dd, yyyy} to {bottom|mmm dd, yyyy}'")
    + c.xAxis().getHTMLImageMap("handler.jsp");

The added image map c.xAxis().getHTMLImageMap("handler.jsp") will make the axis labels clickable.

Hope this can help.

Regards
Peter Kwan

  Re: Clickable Axis Labels in Ganttchart - Java
Posted by Bas on Nov-09-2013 03:23
Perfect Peter, spot-on as always

Thx

Bas