WPF Chart controls not showing up at all

2 posts, 0 answers
  1. Carlo
    Carlo avatar
    1 posts
    Member since:
    Aug 2012

    Posted 26 Aug 2013 Link to this post

    Hello, I'm trying to evaluate some feature on the Chart controls, but they don't show up in my Window at all. I started by doing something complex, then moved down to a really simple binding, then no binding (just some hard coded data in XAML itself) and that's when I realized that the problem was not the binding, but the chart itself. This is the code I have:

    <Window x:Class="ChartControlEvaluationProject.SimpleWindow"
            Title="Simple Window">
            <telerik:RadCartesianChart x:Name="chart">
                    <telerik:CategoricalAxis />
                    <telerik:LinearAxis />
                    <telerik:LineSeries Stroke="Orange"
                            <telerik:CategoricalDataPoint Value="20" />
                            <telerik:CategoricalDataPoint Value="40" />
                            <telerik:CategoricalDataPoint Value="35" />
                            <telerik:CategoricalDataPoint Value="40" />
                            <telerik:CategoricalDataPoint Value="30" />
                            <telerik:CategoricalDataPoint Value="50" />

    And I'm referencing two assemblies only:

    - Telerik.Windows.Controls
    - Telerik.Windows.ChartControls

    The version of those assemblies is 2013.2.724.45. And I installed the demo version on 8/19/2013, so I'm still under valid trial time.

    Is there anything I'm missing?
  2. Evgenia
    Evgenia avatar
    1437 posts

    Posted 29 Aug 2013 Link to this post

    Hi Carlo,

     You may find attached a sample I prepared based on your code snippet with the version of our controls you mentioned and everything is working as expected on my side. Below you'll find a snapshot of the result I'm getting. Feel free to modify the project and/or use it for your scenario. The onliest reason for this code to not work is the Target Framework version you have set for your project. Since the binaries you mentioned end with .45 suffix, please make sure that you are using .NET Framework 4.5. You can easily check/modify your project version by right-clicking the project inside Visual Studio , then choose Properties -> Application tab and Target Framework text block.

    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 >>
Back to Top