ComponentOne FlexChart for UWP
FlexChart / Working with FlexChart / FlexChart Elements / Annotations / Customizing Annotations
In This Topic
    Customizing Annotations
    In This Topic

    FlexChart annotations are customizable in terms of dimensions (for shapes), scaling (for images), and content style (for all except images).

    The following image displays the Rectangle annotation customized to further highlight the maximum tax revenue in the year, 2013.

    The following code compares tax revenue data of nine consecutive years to display the maximum tax revenue. The code shows how to set the Rectangle annotation's dimensions, customize its appearance and content.

    <Annotation:Rectangle.Style>
        <Chart:ChartStyle Fill="DarkBlue" 
                       Stroke="OrangeRed"
                       StrokeThickness="2"
                       StrokeDashArray="1,2"
                       FontFamily="GenericSansSerif" 
                       FontWeight="Normal" />
    </Annotation:Rectangle.Style>
    <Annotation:Rectangle.ContentStyle>
        <Chart:ChartStyle Stroke="Yellow"
                       FontFamily="GenericSansSerif"
                       FontSize="8.5"
                       FontWeight="Bold">
        </Chart:ChartStyle>
    </Annotation:Rectangle.ContentStyle>