Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.Net Charts LabelURL

I've got some graphics working with the MS Asp.Net Chart controls, I noticed the labels have a label URL property, If I put a URL in there then it makes that label a link.

My question is, is it possible to have the label URL be dynamic for each entry in the graph for example I have a graph plotting how many tasks are outstanding for each project. I want the URL to go to the home page for each project.

e.g Http://www.mywebsite.com/projects.aspx?projectId=*InsertProjectIdHere*

I'm sure this must be quite a common thing to do so i'm guessing it is possible.

Thanks

like image 384
Gavin Avatar asked Nov 23 '25 22:11

Gavin


1 Answers

If your x series has the project id in it, you can do

labelUrl = "Http://www.mywebsite.com/projects.aspx?projectId=#VALX"

like image 83
vitule Avatar answered Nov 26 '25 12:11

vitule



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!