Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
485
How to make CalloutAnnotations position correctly on window resize?
posted

Hi,

I have added some custom annotations on my chart.

CalloutAnnotation ca = new CalloutAnnotation();
ca.Location.LocationX = this.annotationLocation.X;
ca.Location.LocationY = this.annotationLocation.Y;
ca.Location.Type = LocationType.Pixels;
ca.PE.Fill = Color.Aqua;
ca.OffsetMode = LocationOffsetMode.Automatic;
ca.Text = ac.AnnotationString;
ca.Visible = true;
this.DipAzimuthPolarChart.Annotations.Add(ca);

Is there a way to make the chart recompute the location of annotations when window-size changes, without re-drawing them using fillscenegraph event?

Right now, the annotations get re-drawn at the original x and y position specified, always.

Thanks

AK