How can I get which chart label (not ChartData) is clicked?
For example consider the chart below: When the user clicks "AdminShare Connection" I want to get the label (and it's datavalue)
7.3.
refer to the documentation topics on custom layers and you can use this same code in an ILayer implementation. it's just a few extra steps to get it hooked up.
I'm on 7.2 and it looks FillSceneGraph is not available. Which version do I need for that?
thanks
this isn't a feature of the chart but it's possible through a hack. handle the FillSceneGraph event and make some adjustments to the Text primitives. something like this:
void ultraChart1_FillSceneGraph(object sender, FillSceneGraphEventArgs e)
{
foreach (Primitive p in e.SceneGraph)
if (p is Text)
p.Caps |= PCaps.HitTest | PCaps.Tooltip;
p.Layer = e.ChartCore.GetChartLayer();
p.Chart = this.ultraChart1.ChartType;
p.Column = p.Row = 0;
}
after doing this, the labels should raise the ChartDataClicked event.