Hi
I have a composite chart that is composed of line and column charts. in these charts, I draw stock prices and volume respectively. moreover, I have annotations plotted on the line charts as images to show trades that were made on a specific date.
But, when there many annotations that close to each other in terms of dates, they overlap which makes it very hard to see all of them.
is there a way in which I can make these annotations arrange automatically to not overlap?
Please help,
Thanks
here is an example of how they look:
You want to draw an annotatoin using DataValues but see which coordinates they fall on? Yeah, in FillSceneGraph once you got the ChartImage primitive, look at chartImg.bounds to see the coordinages of the image. As for your other question, annotations don't receive mouse events and aren't hit-testable, but there are a few tricks to make it work. Check out this post for some ideas:http://community.infragistics.com/forums/p/32660/184196.aspx
thanks for the answer, that was an excellent way. I have another question. I'm using datavalues to draw the annotations, is there a way to convert them into pixels? and is there a way to get the annotation at the mouse location?
There is no internal logic to adjust positioning of annotations. However, you can manually reposition them if you handle FillSceneGraph event. When you loop through the scenegraph look for ChartImage primitives. These are the images that represent your image annotations and you can adjust their positioning there.