Hi,
I have composite chart. I need to add title to it. I want to use BoxAnnotation.
ChartArea.BoundsMeasureType is Percentage.
I would like to resize chart's Bounds to make sure the BoxAnnotation/Title does not overlap anything on the chart.
BoxAnnotation has GetBoxSize method that returns size in pixels.
How can I know BoxAnnotation's height in percentage?
Thank you,
Alexander
You can use chart area's InnerBounds rectangle to determine where to place your annotation. Basically, when the chart renders itself, InnerBounds will be updated. If you set your annotation bounds to be a function of InnerBounds of the chart area, your annotation will be repositioned every time the size of the chart area changes.