ChartView null values handling

4 posts, 1 answers
  1. Robert
    Robert avatar
    2 posts
    Member since:
    Jan 2015

    Posted 22 Jan 2015 Link to this post

    I am using the newest version of telerik libraries, but on my ChartView controls are null values displayed as 0s so on LineChart lines are there evry time pointing to 0 where null value is avaiulable.

    Is this the way it is supposed to work ? DoI have to use old version of Chart (RadChart) to have empty (null) vales properly displayed ?

    Cheers,
    Robert
  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 26 Jan 2015 Link to this post

    Hello Robert,

    I am a little unsure what you mean.

    We have two charting solutions - the old RadChart (in the Charting.dll) and the new RadChartView (Chart.dll). The new RadChartView is actually a set of controls - RadCartesianChart, RadPolarChart, RadPieChart, ChartDataSource. We suggest you do not start using the old control and completely remove the Charting.dll reference. The new chart view has a much better performance, it is easy to set up and is very flexible.

    The new chart has only Gap mode support for the empty values - empty points are not displayed at all, a gap is left where such values occur. See our online example here. Let us know how if you need more information.

    Regards,
    Petar Marchev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Robert
    Robert avatar
    2 posts
    Member since:
    Jan 2015

    Posted 26 Jan 2015 in reply to Petar Marchev Link to this post

    Hey Petar,

    i solved my issue with removing outlined data source for the chart (defining telerik:ChartDataSource and ItemsSource="{Binding ElementName=ChartDataSource1}).

    With outlined data source empty points are displayed as 0, if it is defined inline it works properly.

    Cheers,
    Robert
  5. Answer
    Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 26 Jan 2015 Link to this post

    Hi Robert,

    I think that now I understand what is going on - you have stumbled upon a limitation in the ChartDataSource, it currently does not support empty values. We do have this logged in our feedback portal and we have plans on improving it in the near future.

    Regards,
    Petar Marchev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top