hi
I have a composite chart with both line and column chart in it. I also have lineImage annotations added to the chart.
I would like to know if there is an event that will fire up when I hover one of these annotations
Thanks for your help in advance
Bakr
there is not. however, if you use the FillSceneGraph event, you can overlay Box primitives over the ChartImage primitives, and make the Box primitives raise the ChartDataClicked event.
private void ultraChart1_FillSceneGraph(object sender, FillSceneGraphEventArgs e) { PrimitiveCollection primitivesToAdd = new PrimitiveCollection(); foreach (Primitive p in e.SceneGraph) { ChartImage img = p as ChartImage; if (img != null) { Box clickableBox = new Box(img.bounds); clickableBox.Row = clickableBox.Column = 0; clickableBox.Layer = e.ChartCore.GetChartLayer(); clickableBox.Caps = PCaps.HitTest; clickableBox.Chart = this.ultraChart1.ChartType; primitivesToAdd.Add(clickableBox); } } e.SceneGraph.AddRange(primitivesToAdd.ToArray()); }
Thank for your reply, but this is for a mouse click, is there anything for mouse hover over...?
the added Box will also raise the DataItemOver event.
Thanks for the rely. I have tried that code and I kept on trying other things but I still don't get the mouse over event fired off when I hover the annotation.
I can see that box with black borders is drawn on top of the image but it doesn't fire off the data over event. is there a way to make the borders of the box transparent?
could I be missing something? should the clickable box be associated with a datapoint?
no MouseOver event will be raised, but did you try handling the DataItemOver event?