2 posts, 0 answers
  1. Fredrick Bartlett
    Fredrick Bartlett avatar
    5 posts
    Member since:
    May 2006

    Posted 03 Jun 2011 Link to this post

    I am binding a chart series to a collection of business objects. However my yAxis(Value) series does not display. Also, what is the correct control for the xAxis if the Category type is double? Categorical, Linear... 
    Is there any documentation? The samples are not helpful for understanding binding MVVM implementation.

    Business Object

        public class ChartBusinessObject
            public int? Value { get; set; }
            public double Category { get; set; }

            public ChartBusinessObject()
                Value = -1;
                Category = -1;


            public List<ChartBusinessObject> ChartDataItemPit1
                    return _chartdataitempit1;

                    if (_chartdataitempit1 != value)
                        _chartdataitempit1 = value;

                <telerikChart:SplineSeries PointTemplateSelector="{StaticResource series1PointSelector}"
                                         Stroke="{StaticResource Series1Brush}"
                                         ItemsSource="{Binding Path=ChartDataItemPit1}">
                        <telerikChart:PropertyNameDataPointBinding PropertyName="Value"/>
                        <telerikChart:PropertyNameDataPointBinding PropertyName="Category"/>

  2. Georgi
    Georgi avatar
    296 posts

    Posted 08 Jun 2011 Link to this post

    Hi Fredrick,

    Thank you very much for using RadChart and for your feedback.

    There is bug with our MVVM data-binding mechanism and Nullable types. We will fix the problem for the upcoming BETA when we are planning to add support for Empty (null value) data points.

    Currently supported are only Categorical series, which expect a Categorical (or a DateTime) axis to be specified in order to be correctly plotted. For the official release we will add the so called "Scatter" series - ScatterLine, ScatterArea, etc., which will be plotted by two linear axes.

    We are just completing the chart documentation and it should be available on-line tomorrow. We also plan to add a Design-time Chart Gallery, which will allow you to select a predefined chart template to start from.

    I have added 1000 Telerik points to your account for bringing our attention to the bug with Nullable types. Please, do not hesitate to contact us with any question/problem you may have - we will be glad to help.

    Best wishes,
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
Back to Top