2013.1.403.1050 horizontal bar label display issue

2 posts, 0 answers
  1. Steve
    Steve avatar
    17 posts
    Member since:
    Jul 2012

    Posted 08 Apr 2013 Link to this post

    appears as though latest version of chart changes label display layout.
    I've not made changes to xaml, but layout of labels has changed, now hidden by bars.
    <telerik:RadChart x:Name="ScoreSetsChart" ItemsSource="{Binding ReverseView}" Height="180">
        <telerik:RadChart.DefaultSeriesDefinition>
            <telerik:HorizontalBarSeriesDefinition ShowItemToolTips="True">
                <telerik:HorizontalBarSeriesDefinition.LabelSettings>
                    <telerik:BarLabelSettings LabelDisplayMode="Inside"/>
                </telerik:HorizontalBarSeriesDefinition.LabelSettings>
            </telerik:HorizontalBarSeriesDefinition>
        </telerik:RadChart.DefaultSeriesDefinition>
        <telerik:RadChart.SeriesMappings>
            <telerik:SeriesMapping LegendLabel="Scores">
                <telerik:SeriesMapping.ItemMappings>
                    <telerik:ItemMapping DataPointMember="XCategory" FieldName="ScoreName" />
                    <telerik:ItemMapping DataPointMember="YValue" FieldName="Value" />
                </telerik:SeriesMapping.ItemMappings>
            </telerik:SeriesMapping>
        </telerik:RadChart.SeriesMappings>
        <telerik:RadChart.DefaultView>
            <telerik:ChartDefaultView>
                <telerik:ChartDefaultView.ChartArea>
                    <telerik:ChartArea Name="ScoreSetsChartArea1" ItemToolTipOpening="ScoreSetsChart_ItemToolTipOpening">
                        <telerik:ChartArea.AxisY>
                            <telerik:AxisY AutoRange="False" MaxValue="5" MinValue="0" Step="1" MinorTicksVisibility="Collapsed"  />
                        </telerik:ChartArea.AxisY>
                        <telerik:ChartArea.AxisX>
                            <telerik:AxisX LayoutMode="Inside" />
                        </telerik:ChartArea.AxisX>
                    </telerik:ChartArea>
                </telerik:ChartDefaultView.ChartArea>
                <telerik:ChartDefaultView.ChartLegend>
                    <telerik:ChartLegend Visibility="Collapsed" Width="0" Height="0"/>
                </telerik:ChartDefaultView.ChartLegend>
                <telerik:ChartDefaultView.ChartTitle>
                    <telerik:ChartTitle Content="{Binding ScoreCollectionName}" FontSize="10" Padding="0 1 0 0" />
                </telerik:ChartDefaultView.ChartTitle>
            </telerik:ChartDefaultView>
        </telerik:RadChart.DefaultView>
    </telerik:RadChart>

  2. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 12 Apr 2013 Link to this post

    Hi Steve,

     I prepared a sample based on your xaml snippet and the images. However I couldn't reproduce the issue with the labels. Please compare my test attachment with yours to see what causes the difference. If you are not able to find what causes the problem on your side, please strip down your project and send us the runnable sample as attachment. This way we'll be able to support you further.

    Greetings,
    Evgenia
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top