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

invisible radpiechart

5 Answers 88 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 21 Aug 2014, 10:06 AM
Hi. I added to the project Telerik.Windows.Controls, Telerik.Windows.Controls.Chart, Telerik.Windows.Controls.DataVisualization and xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" and then code from this page http://www.telerik.com/help/silverlight/radchartview-series-pieseries.html
Unfortunately, the chart is not visible. What am I doing wrong?

5 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 21 Aug 2014, 12:14 PM
This admin sample http://www.telerik.com/forums/how-to-set-pie-graph-with-radchartview#-jjEeZgso0aLFcWtfEiRkQ is not visible too :/ what is the problem?
0
John
Top achievements
Rank 1
answered on 21 Aug 2014, 12:18 PM
0
John
Top achievements
Rank 1
answered on 21 Aug 2014, 12:21 PM
ehm screen is dead
0
Martin Ivanov
Telerik team
answered on 22 Aug 2014, 10:59 AM
Hello Michal,

Note that, If you are using the NoXaml assemblies you will need to add reference to a theme (for example Telerik.Windows.Themes.Office_Black.dll, which is the default theme). Then you should add the resource dictionaries with the Xaml for the controls in the App.xaml. You could take a look at the Setting a Theme article, which explains the implicit theming mechanism described above. Keep in mind that if you don't add reference to the theme or if you don't merge the control's resource dictionaries, none of the controls will be displayed

In order to display the RadPieChart you should add reference to any of our themes and add the resource dictionaries for the pie chart:

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml"/>
            <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Chart.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

If this doesn't help I would ask you to  provide me with a code or a project which demonstrates the reported behavior.

Thank you for your cooperation.

Regards,
Martin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
John
Top achievements
Rank 1
answered on 22 Aug 2014, 12:31 PM
<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Chart.xaml" />

yes! i added this line in App.xaml and it works. thanks very thanks
Tags
ChartView
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or