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

Chart Legend Display

2 Answers 57 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Mohd
Top achievements
Rank 1
Mohd asked on 30 Aug 2011, 10:05 AM
<telerik:RadChart Grid.Row="2" Background="{x:Null}" BorderBrush="{x:Null}"
                                    BorderThickness="0" Foreground="{x:Null}" ItemsSource="{Binding PieChartDataForCustomField, Mode=TwoWay}" Name="pieChartRegion1" Height="170" MaxWidth="220" VerticalAlignment="Top" Margin="0,0,83,0">
                          <telerik:RadChart.DefaultView>
                              <telerik:ChartDefaultView>
                                  <telerik:ChartDefaultView.ChartLegend>
                                      <telerik:ChartLegend x:Name="pieChartRegion1Legend" UseAutoGeneratedItems="True" Visibility="Visible"/>
                                  </telerik:ChartDefaultView.ChartLegend>
                                  <telerik:ChartDefaultView.ChartArea>
                                      <telerik:ChartArea LegendName="pieChartRegion1Legend" Visibility="Visible"/>
                                  </telerik:ChartDefaultView.ChartArea>
                              </telerik:ChartDefaultView>
                          </telerik:RadChart.DefaultView>
 
                              <telerik:RadChart.DefaultSeriesDefinition>
                                  <telerik:PieSeriesDefinition>
                                      <telerik:PieSeriesDefinition.InteractivitySettings>
                                          <telerik:InteractivitySettings HoverScope="Item" SelectionScope="Item" SelectionMode="Multiple" />
                                      </telerik:PieSeriesDefinition.InteractivitySettings>
                                  </telerik:PieSeriesDefinition>
                              </telerik:RadChart.DefaultSeriesDefinition>
                          </telerik:RadChart>

2 Answers, 1 is accepted

Sort by
0
Mohd
Top achievements
Rank 1
answered on 30 Aug 2011, 10:11 AM
I have following above code in Xaml... but the problem is that the legend is not getting displayed...when i checked in silverlight spy i found
that  PART_DefaultChartLegendContainer visibility is collapsed...on making it visible the legend gets displayed in silverlight spy...now i think that since animation is applied in our project this is happening..now how can i solve this...Any help would b great...
thanks..
0
Yavor
Telerik team
answered on 01 Sep 2011, 11:51 AM
Hi Mohd,

Unfortunately we couldn't reproduce the problem that you mentioned using the code that you have shared. Perhaps the problem is elsewhere in your code. I have created a small working demo application that uses your code. Can you please extract the problematic code into this project or a new one and send it to us so that we can investigate it in details and advice you how to proceed?

All the best,
Yavor Ivanov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Chart
Asked by
Mohd
Top achievements
Rank 1
Answers by
Mohd
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or