Unplanned
Last Updated: 23 Jun 2020 11:30 by ADMIN
Erich
Created on: 23 Jun 2020 07:06
Category: ChartView
Type: Feature Request
1
RadChartView: Null values support for RangeSeries [throwing Nullable object must have a value]

Good day,

My requierment is to have a RadChartView with a LineSeries and a RangeSeries.  I add CategoricalDataPoint objects manually to the LineSeries and I manually add RangeDataPoint objects to the RangeSeries. 

 

When I encounter NULL valued datapoints, for the LineSeries, I do the following.  The NULL valued datapoints appear as gaps in the chart as expected.

Dim value As Nullable(Of Double)
Dim serControl  As  LineSeries

serControl = New LineSeries()
chart.Series.Add(serControl)
value = IIf(IsDBNull(dr(data.ControlParameter.ID.ToString())), New Nullable(Of Double), dr(data.ControlParameter.ID.ToString()))
serControl.DataPoints.Add(New Telerik.Charting.CategoricalDataPoint(value))

 

However the RangeSeries do not handle the NULL valued datapoints the same.  I get the following error:  Nullable object must have a value.

Dim LowerBound, UpperBound As Nullable(Of Double)
Dim serRange  As  RangeSeries

serRange = New RangeSeries()
chart.Series.Add(serRange)
LowerBound = IIf(IsDBNull(dr("Lowerbound"), New Nullable(Of Double), dr("LowerBound"))
UpperBound = IIf(IsDBNull(dr("Upperbound"), New Nullable(Of Double), dr("UpperBound"))
serRange.DataPoints.Add(New Telerik.Charting.RangeDataPoint(UpperBound, LowerBound))

 

I need to be able to show gaps, not zero's in a RangeSeries when there are NULL values.

 

How can I do this?

3 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 23 Jun 2020 11:30

Hello, Erich,

Thank you for the provided feedback.

We will definitely have it in mind when implementing this functionality for the RangeSeries in RadChartView

Please make sure that you cast your vote for it. The more votes an item gather, the higher its priority becomes. Click the Follow button in order to get notified when any status changes occur.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Erich
Posted on: 23 Jun 2020 10:14

Hello Des,

Herewith just some background information.  My requirement is that the RangeSeries upper and lower values must be equal to 20% above and below the LineSeries values in the LineSeries.  If the LineSeries contains NULL values, gaps are shown, however an error is shown for the RangeSeries since 20% of the NULL values is reflected as NULL in my data source for upper and lower bounds.  For the time being I will forward-fill the previous datapoint's upper and lower range value in case of a NULL value.

Thank you for considering my request.

 

Kind regards,

Erich

ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 23 Jun 2020 10:04
 

Hello, Erich,  

RadChartView supports empty values in the series. In general, empty values means missing Y value for a particular X value. Additional information is available in the following help article: https://docs.telerik.com/devtools/winforms/controls/chartview/null-values-support-

However, I would like to note that as it is noted in the referred help article, NullValues is supported only for Cartesian series like Bar, Line, Spline, Area and SplineArea. The CategoricalDataPoint offers constructor which accepts null values.

Currently, the RangeSeries doesn't support null values. However, it seems to be a reasonable request.

I have logged it in our feedback portal by making this thread a public feature request on your behalf. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.