Hi,
I'm currently trying to add an Annotation (Callout) to a line which is an element inside a ColumnLineChart. It shall be positioned on the height of the line outside the chart next to the Y2-Axis.
Two ways:
First I could try to position it in the normal (default) layer but i don't get the coordinates of the line - or can I and how?
Second trying to accomplish that in the FillSceneGraph but there are tons of lines - how can i get the one from the ColumnLineChart?
Still using 2006.1 :(
Thanks for your help
Daniel
I think using FillSceneGraph is the right approach, because you do need to map a data value into coordinates and that can only be done in the custom layer.If you're trying to distinguish the columnline chart line from a gridline, then it's pretty simple. The line in the chart is actually a Polyline primitive. Other line elements are Line primitives with Layer property set to null. However, if your column line chart displays multiple lines (from multiple rows of data), it'll be trickier to tell one line from another. For that scenario, you'd have to somehow compare the line's point values to the data table values bound to the chart.
Max,
Do you have a sample c# code where callout created dynamically using fillscenegraph?
ex
Callout callout = new Callout();
.
e.SceneGraph.Add(callout);
Thanks,
James