LabelFitMode MultiLine Does not work in UWP

5 posts, 0 answers
  1. Mark
    Mark avatar
    12 posts
    Member since:
    Jan 2017

    Posted 09 Feb Link to this post

    I have a long label which is returned from Category, but the LabelFitMode Multiline in the below chart on the VerticalAxis does not result in the label wrapping to another line.

     

    <telerikChart:RadCartesianChart x:Name="OSVersion"
                                Palette="{StaticResource BarGraphPalette}"
                                HeightRequest="{Binding OsSummary.Progression, Mode=OneWay, Converter={StaticResource listToHeightConverter}, ConverterParameter=50}">
        <telerikChart:RadCartesianChart.Grid>
            <telerikChart:CartesianChartGrid MajorLinesVisibility="None" MajorLineColor="Transparent"/>
        </telerikChart:RadCartesianChart.Grid>
     
        <telerikChart:RadCartesianChart.HorizontalAxis>
            <telerikChart:NumericalAxis  ShowLabels="True"/>
        </telerikChart:RadCartesianChart.HorizontalAxis>
     
        <telerikChart:RadCartesianChart.VerticalAxis>
            <telerikChart:CategoricalAxis GapLength="0.3"
                                          ShowLabels="True"
                                          LabelFitMode="MultiLine"
                                          PlotMode="BetweenTicks"/>
        </telerikChart:RadCartesianChart.VerticalAxis>
     
        <telerikChart:RadCartesianChart.Series>
            <telerikChart:BarSeries ItemsSource="{Binding OsSummary.Progression}" ShowLabels="True" >
                <telerikChart:BarSeries.ValueBinding>
                    <telerikChart:PropertyNameDataPointBinding PropertyName="Value" />
                </telerikChart:BarSeries.ValueBinding>
                <telerikChart:BarSeries.CategoryBinding>
                    <telerikChart:PropertyNameDataPointBinding PropertyName="Category"/>
                </telerikChart:BarSeries.CategoryBinding>
            </telerikChart:BarSeries>
        </telerikChart:RadCartesianChart.Series>
     
    </telerikChart:RadCartesianChart>
  2. Mark
    Mark avatar
    12 posts
    Member since:
    Jan 2017

    Posted 09 Feb in reply to Mark Link to this post

    That is Xamarin Forms on UWP:)
  3. Ves
    Admin
    Ves avatar
    2914 posts

    Posted 14 Feb Link to this post

    Hi Mark,

    I can confirm we were able to reproduce it as described. We will aim to fix it in one of our upcoming releases. I have updated your Telerik points for bringing this to our attention.

    Best regards,
    Ves
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  4. Ves
    Admin
    Ves avatar
    2914 posts

    Posted 16 Feb Link to this post

    Hi Mark,

    Please, accept my apologies for the misleading reply. The observed behavior is actually the expected one. LabelFitMode.MultiLine does not mean wrapping the text of a label on multiple lines, but rather arranging text of different labels on multiple levels, so that they do not overlap. That said, LabelFitMode.MultiLine does not make sense for horizontal charts (i.e. when the categorical axis is vertical) as the labels will not overlap anyway. Wrapping the text on multiple lines is not supported.

    Best regards,
    Ves
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. Mark
    Mark avatar
    12 posts
    Member since:
    Jan 2017

    Posted 16 Feb in reply to Ves Link to this post

    Gotcha! Thank you for letting me know.
Back to Top