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

Message ListMessage List     Post MessagePost Message

  Help: clickable function when I draw rectangle
Posted by Vanessa on Feb-06-2014 17:52
Dear Sir,

I would like to have clickable function when I draw rectangle.
How can I make it come true when I use below script:

c.getDrawArea.rect(0, 0, 10, 10, &H0, &HFFCC00)

By the way, the tool is asp.net.
Thanks a lot!

  Re: Help: clickable function when I draw rectangle
Posted by Peter Kwan on Feb-07-2014 02:32
Hi Vanessa,

You may simply create a standard <area> tag for the rectangle, just like it is a rectangle on
a normal image. (The "<area>" tag can be used to make part of an image clickable, just like
the "<A>" tag can be used to make HTML text clickable. See
http://www.w3schools.com/tags/tag_area.asp)

For the rectangle from (0, 0) to (10, 10), the area tag is like:

<area coords="0,0,10,10" shape="rect" href="aaaa.aspx" />

If you are also have other image map tags (such as those generated using
getHTMLImageMap), you can simply append the above <area> tag to your existing image
map tags.

Dim myImageMap As String = "<area coords='0,0,10,10' shape='rect' href='aaaa.aspx' />"
WebChartViewer1.ImageMap = c.getHTMLImageMap(.....) + myImageMap

Hope this can help.

Regards
Peter Kwan

  Re: Help: clickable function when I draw rectangle
Posted by Vanessa on Feb-07-2014 09:19
Dear Peter,

Thanks a lot for your kindly reply, it's workable.
I am very appreciate your excellent know how and the powerful ChartDirector tool.^^