.NET Framework Bookmark and Share   
 index > Chart Controls for .NET Framework > Hyperlink (ImageMap?) for Legend items
 

Hyperlink (ImageMap?) for Legend items

I am able to set hyperlinks to data points using the following code from above:

for
 (int
 i = 0; i < chart.Series["Series1"
].Points.Count; i++)
{
chart.Series["Series1" ].Points[i].Url = "ChartDetailData.aspx?type=" + chart.Series["Series1" ].Points[i].AxisLabel;
}

The one issue with that is that, it doesn't appear to work when I have a PieCollectedDataHelper. To resolve that issue, I was also trying to get the hyperlinks to appear in the Legend. How can I do this? The only example I could find (Interactivity and AJAX > Drill Down > Image Map Selection) uses different series not different points of the same series.
im1dermike

Hi!
You can try this.

serie.LegendToolTip = " n:" + rowcount.ToString();

/Jan

Lajban
That did nothing except create a ToolTip for each Legend item like "n:3".

Is there a way to index Legend items like this?

Chart1.Legends["Legend1"].LEGENDITEM[i].Url = "ChartDetailData.aspx......";
im1dermike

You can use google to search for other answers

Custom Search

More Threads

• I need some example for pie chart except miscrosoft windows chart example.
• Multiple X-Axis Values
• Cross-Table Data Binding
• stacked Bar setting xvalue
• Superscript in datapoint label?
• stock Intraday chart on multiple day
• Data points insertion error. Only 1 Y values can be set for this data series.
• HOW TO ADD THE RADOR CHART AND HOW TO ENTER THE DATA IN THE RADOR CHART
• "False Border" on Charts
• chart with no data