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
65
Alignment of Marker in ColumnSeries
posted

Hello,

How can I change the position of Marker on Column series?

I've created DataTemplate for MarkerTemplate in YAXis

<DataTemplate x:Key="MarkerTemplate">
    <TextBlock Margin="5,0,0,5" Text="{Binding Item.YAxisData}" Foreground="Black" FontSize="10" >
        <TextBlock.RenderTransform>
            <RotateTransform Angle="-90"/>
        </TextBlock.RenderTransform>
    </TextBlock>
</DataTemplate>

The problem is, when I set a marker as a vertical text, it's not aligned with the column and the tick under it.

When it's horizontal it's fine. Also, it would be great if the solution you provide works well with the zoom as well.