RadCartesianChart - Designer stops work

3 posts, 0 answers
  1. Bernhard
    Bernhard avatar
    2 posts
    Member since:
    Nov 2015

    Posted 04 Aug Link to this post

    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. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 09 Aug Link to this post

    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
  3. DevCraft banner
  4. Bernhard
    Bernhard avatar
    2 posts
    Member since:
    Nov 2015

    Posted 12 Aug Link to this post

    Hello,

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

    Thanks for your help.

Back to Top