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

RadCartesianChart - Designer stops work

2 Answers 65 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bernhard
Top achievements
Rank 1
Bernhard asked on 04 Aug 2016, 07:11 AM

Hi,

We are currently developing an UWP application for Windows 10 IoT devices and using the telerik redcartesian chart to create a line chart.

Our issue is that we can see our line chart when we start the app on Pi2, but our designer in Visual Studio doesn't work.

When we use an other line chart like that from WinRT our designer works normally.

 

You can see a picture of the error in the attachments.

 

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <telerikChart:RadCartesianChart x:Name="chart">
            <telerikChart:RadCartesianChart.HorizontalAxis>
                <telerikChart:DateTimeContinuousAxis LabelFormat="{}{0,0:dd.MMMM}"/>
            </telerikChart:RadCartesianChart.HorizontalAxis>
            <telerikChart:RadCartesianChart.VerticalAxis>
                <telerikChart:LinearAxis/>
            </telerikChart:RadCartesianChart.VerticalAxis>
            <telerikChart:LineSeries ItemsSource="{Binding}">
                <telerikChart:LineSeries.ValueBinding>
                    <telerikChart:PropertyNameDataPointBinding PropertyName="Temp"/>
                </telerikChart:LineSeries.ValueBinding>
                <telerikChart:LineSeries.CategoryBinding>
                    <telerikChart:PropertyNameDataPointBinding PropertyName="Time"/>
                </telerikChart:LineSeries.CategoryBinding>
            </telerikChart:LineSeries>
        </telerikChart:RadCartesianChart>
    </Grid>   

 

code behind:

 

        private void loaded(object sender, RoutedEventArgs e)
        {
            (this.chart.VerticalAxis as LinearAxis).Minimum = 0;
            (this.chart.VerticalAxis as LinearAxis).Maximum = 50;
            (this.chart.VerticalAxis as LinearAxis).MajorStep = 5;
            (this.chart.HorizontalAxis as DateTimeContinuousAxis).MajorStepUnit = TimeInterval.Day;
            (this.chart.HorizontalAxis as DateTimeContinuousAxis).MajorStep = 1;
        }

2 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 09 Aug 2016, 05:11 AM
Hello,

Could you please isolate the issue in a separate app because on a brand new app the designer is working as expected?

I am looking forward to your reply.

Regards,
Ivaylo Gergov
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Bernhard
Top achievements
Rank 1
answered on 12 Aug 2016, 06:43 AM

Hello,

We have copied our full code to a brand new project and it works fine now.

Thanks for your help.

Tags
Chart
Asked by
Bernhard
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Bernhard
Top achievements
Rank 1
Share this question
or