Jump to content
Software FX Community

How can i insert dynamic links into the bars of a bar chart?


Recommended Posts

I have a bar chart and i would like to make the individual bars clickable.

The x-axis has the months and the y-axis is the count.

The information displayed in the chart is a summary, so i would like users to be able to click on a particular bar representing a month and a quantity

to go to another page with the details.


How can i insert dynamic links into a bar chart to do this?

Link to comment
Share on other sites

You can either process the click event which will generate a postback (or callback) to your form or you can set the Link property to point to a different Url, for example:

 chart1.AllSeries.Link.Url = "http://www.softwarefx.com"

You can use macros in this URL using the '%' sign. See API reference on Link.Url for details.

You can also assign different Url for each series:

chart1.Series[0].Link.Url = "http://www.softwarefx.com";

chart1.Series[1].Link.Url = "http://support.softwarefx.com";

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...