This is a migrated thread and some comments may be shown as answers.
LabelFitMode MultiLine Does not work in UWP
4 Answers 9 Views
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 09 Feb 2017, 11:45 PM

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>

4 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 1
answered on 09 Feb 2017, 11:46 PM
That is Xamarin Forms on UWP:)
0
Ves
Telerik team
answered on 14 Feb 2017, 11:14 AM
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
0
Ves
Telerik team
answered on 16 Feb 2017, 09:28 AM
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
0
Mark
Top achievements
Rank 1
answered on 16 Feb 2017, 05:26 PM
Gotcha! Thank you for letting me know.
Tags
Chart
Asked by
Mark
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 1
Ves
Telerik team
Share this question
or