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
2589
Legend height
posted

Hello,at I build a chart at runtime - axes first, then series. And I have this XAML for chart:

 

<Chart:XamWebChart x:Name="Chart" Grid.Row="1">
                <Chart:XamWebChart.Legend>
                    <Chart:Legend Visibility="Visible"
                                VerticalAlignment="Top"/>
                </Chart:XamWebChart.Legend>
            </Chart:XamWebChart>

And what I get is this picture:

Is there anything I can do about this?

Thanks.

  • 30692
    Offline posted

    Hi,

    The legend is a canvas like control, so if you set it to align top it will use the minimum height, and attempt to layout in that space. Either set it to stretch or increase its MinHeight.

    Hope this helps!

    -Graham