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

ChartView null values handling

3 Answers 206 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 22 Jan 2015, 04:50 PM
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

3 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 26 Jan 2015, 07:57 AM
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.

 
0
Robert
Top achievements
Rank 1
answered on 26 Jan 2015, 08:10 AM
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
0
Accepted
Petar Marchev
Telerik team
answered on 26 Jan 2015, 08:23 AM
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.

 
Tags
ChartView
Asked by
Robert
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Robert
Top achievements
Rank 1
Share this question
or