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)
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.
I'm on 7.2 and it looks FillSceneGraph is not available. Which version do I need for that?
thanks