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

Problem with RadChart scroll and zoom

1 Answer 82 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Alberto
Top achievements
Rank 1
Alberto asked on 25 Sep 2013, 06:50 PM
Hi,

I have a chart like the one in the image,the code is the next:

<telerik:RadChart Name="RadChartDemo" Grid.ColumnSpan="3" Content="" Margin="10" Grid.Row="2" BorderThickness="0">
           <telerik:RadChart.DefaultView>
               <telerik:ChartDefaultView>
                   <telerik:ChartDefaultView.ChartArea>
                       <telerik:ChartArea>
                           <telerik:ChartArea.ZoomScrollSettingsY>
                               <telerik:ZoomScrollSettings ScrollMode="ScrollAndZoom"/>
                           </telerik:ChartArea.ZoomScrollSettingsY>
                           <telerik:ChartArea.ZoomScrollSettingsX>
                               <telerik:ZoomScrollSettings ScrollMode="ScrollAndZoom"/>
                           </telerik:ChartArea.ZoomScrollSettingsX>
                       </telerik:ChartArea>
                   </telerik:ChartDefaultView.ChartArea>
                   <telerik:ChartDefaultView.ChartTitle>
                       <telerik:ChartTitle Content="Tons Per Day" HorizontalAlignment="Center"/>
                   </telerik:ChartDefaultView.ChartTitle>
               </telerik:ChartDefaultView>
           </telerik:RadChart.DefaultView>
       </telerik:RadChart>

And I create the series using SeriesMapping and ItemMapping. When I run the application I can see both scroll bars but it seems to be disable, I can't scroll nor zoom the chart.

Do I have something missing?

Regards,

Alberto

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar Kirov
Telerik team
answered on 01 Oct 2013, 06:29 AM
Hi Alberto,

The problem is that you have set the Content property of the control to an empty string and an empty TextBlock is displayed over the control, preventing you from performing any mouse interaction. By removing the Content="" attribute from the XAML declaration, you can solve your problem.
 
Regards,
Petar Kirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Chart
Asked by
Alberto
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or