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

WPF Chart controls not showing up at all

3 Answers 492 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Carlo
Top achievements
Rank 1
Carlo asked on 26 Aug 2013, 06:41 PM
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">
    <Grid>
        <telerik:RadCartesianChart x:Name="chart">
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:CategoricalAxis />
            </telerik:RadCartesianChart.HorizontalAxis>
 
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis />
            </telerik:RadCartesianChart.VerticalAxis>
 
            <telerik:RadCartesianChart.Series>
                <telerik:LineSeries Stroke="Orange"
                                    StrokeThickness="2">
                    <telerik:LineSeries.DataPoints>
                        <telerik:CategoricalDataPoint Value="20" />
                        <telerik:CategoricalDataPoint Value="40" />
                        <telerik:CategoricalDataPoint Value="35" />
                        <telerik:CategoricalDataPoint Value="40" />
                        <telerik:CategoricalDataPoint Value="30" />
                        <telerik:CategoricalDataPoint Value="50" />
                    </telerik:LineSeries.DataPoints>
                </telerik:LineSeries>
            </telerik:RadCartesianChart.Series>
        </telerik:RadCartesianChart>
    </Grid>
</Window>

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?

3 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 29 Aug 2013, 12:37 PM
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.

Regards,
Evgenia
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 >>
0
Syleps
Top achievements
Rank 1
Veteran
answered on 11 Apr 2019, 06:10 AM
I have developped my application with the version 2016.3.1024.45. Now, I am trying to migrate to the version 2019.1.220.45. If I use DLLs from the folder Binaries.NoXaml, the RadCartesianChart is not displayed (at runtime or in Visual Studio 2017). I haven't problem if I use DLLs from the folder Binaries. I reproduce the problem with the sample (ChartView-LineSeries.zip). Can you help me ?
0
Martin Ivanov
Telerik team
answered on 11 Apr 2019, 10:52 AM
Hello Carlo,

Can you please check the Missing Controls in the UI article and let me know if it helps? Basically, when you use NoXaml dlls, you will need to merge the corresponding resources. Otherwise, nothing is shown.

I hope this helps.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ChartView
Asked by
Carlo
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Syleps
Top achievements
Rank 1
Veteran
Martin Ivanov
Telerik team
Share this question
or