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

Axis not found

1 Answer 90 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 31 Jul 2012, 12:41 PM
I'm trying to create a simple horizontal bar chart that contains 3 data items and corresponding values. I've been working through the Help files on the website to get started with a RadCartesianChart.
I have the dlls,  Telerik.Windows.Controls, Telerik.Windows.Controls.Chart, and Telerik.Windows.Data included as referenced libraries within the WPF project. Any ideas what I am doing wrong?

I have the following references setup in XAML:
xmlns:chart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Chart"
xmlns:charting="clr-namespace:Telerik.Charting;assembly=Telerik.Windows.Controls.Chart"
xmlns:chartView="clr-namespace:Telerik.Windows.Controls.ChartView;assembly=Telerik.Windows.Controls.Chart"

I have the chart declared as shown below. The LinearAxis and CategoricalAxis are displaying messages that state; The type 'chart:LinearAxis' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
<ContentControl Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="300"
                 x:Name="chartPlaceHolder">
    <chart:RadCartesianChart x:Name="speedometerChart">
        <chart:RadCartesianChart.HorizontalAxis>
            <chart:LinearAxis/>
        </chart:RadCartesianChart.HorizontalAxis>
        <chart:RadCartesianChart.VerticalAxis>
            <chart:CategoricalAxis/>
        </chart:RadCartesianChart.VerticalAxis>
    </chart:RadCartesianChart>
</ContentControl>

1 Answer, 1 is accepted

Sort by
0
Rosko
Telerik team
answered on 03 Aug 2012, 10:17 AM
Hi Bill,

You are looking in the wrong namespace for the axes. They are located in
xmlns:chartView="clr-namespace:Telerik.Windows.Controls.ChartView;assembly=Telerik.Windows.Controls.Chart"

It should be like this:
<chartView:LinearAxis/>

I hope this will help you solve the issue.

Regards,
Rosko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ChartView
Asked by
Bill
Top achievements
Rank 1
Answers by
Rosko
Telerik team
Share this question
or