This is a migrated thread and some comments may be shown as answers.

Silverlight RadChart labels location issue

2 Answers 7 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Alexey
Top achievements
Rank 1
Alexey asked on 21 Mar 2016, 10:17 AM

Hello,

I use RadChart to implement pie chart.

Mostly it works perfect but sometimes it can't find an optimal way to locate labels (see the attached file, one label gets cut off).

The SmartLabels mode is enable.

Here is my code:

<tcc:RadChart Grid.Row="1" x:Name="pieChart" Background="Transparent" BorderBrush="Transparent" UseDefaultLayout="False" >
                <tcc:RadChart.AnimationSettings>
                    <tch:AnimationSettings DefaultSeriesDelay="00:00:00" ItemAnimationDuration="00:00:00.25" ItemDelay="00:00:00"/>
                </tcc:RadChart.AnimationSettings>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="3*" />
                        <ColumnDefinition Width="1*" />
                    </Grid.ColumnDefinitions>
                    <tch:ChartArea x:Name="chartArea" LegendName="chartLegend" SmartLabelsEnabled="True" Height="460" Margin="0" Padding="0" VerticalAlignment="Top" ItemClick="ChartArea_ItemClick"/>
                    <tch:ChartLegend x:Name="chartLegend" Grid.Column="1" Style="{StaticResource PieChartLegendStyle}" Height="460" Margin="0" Padding="0" VerticalAlignment="Top" LegendItemStyle="{StaticResource CustomChartLegendItemStyle}"/>
                </Grid>
            </tcc:RadChart>

Is there a way to solve this issue?

2 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 22 Mar 2016, 09:22 AM
Hello Alexey,

Note that RadChart is our old charting component that has known issues and limitations. This is why the new RadChartView was created. RadChartView brings better implementation and improved performance. Also, it is easier to set up and quite flexible. You can read about the differences between the charts in the RadChart vs. RadChartView help article.

You can try the RadChartView smart label feature which is demonstrated in the Pie Smart Labels demo.

Regards,
Martin
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Alexey
Top achievements
Rank 1
answered on 23 Mar 2016, 01:11 PM

Thanks Martin, I will try  RadChartView

 

Tags
Chart
Asked by
Alexey
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Alexey
Top achievements
Rank 1
Share this question
or