I'm having trouble making the X-axis labels clickable in an asp.net stacked bar chart (sorry, said y-axis in the subject). Using the code below, they don't even get added to the area map and become clickable, let alone the event fire. If I uncomment the url, they become clickable and send me to the default page so I think I'm dealing with the correct chart elements, but I want postback event and to be able to access the label specific values and react to them. What am I doing wrong?
protected
void
RadChart2_Load(
object
sender, EventArgs e)
{
foreach
(ChartAxisItem axisItem
in
this
.RadChart2.PlotArea.XAxis.Items)
{
axisItem.ActiveRegion.Tooltip =
"Click Me"
;
//axisItem.ActiveRegion.Url = "Default.aspx";
axisItem.ActiveRegion.Click +=
new
RegionClickEventHandler(ActiveRegion_Click);
}
}