Completed
Last Updated: 18 May 2015 12:57 by JAIME
ADMIN
Danail Vasilev
Created on: 17 Jul 2013 14:37
Category: HtmlChart
Type: Bug Report
4
FIX add declaratively/programmatically null-able series items in the RadHtmlChart
Currently it is not possible to add null-able series items in RadHtmlChart in the markup or programmatically. If a null-able item is added it is omitted and is replaced by the next series item from the current Series. The workaround is to either data bound the chart to a data source or convert the null-able values to zeros:

C#:

        decimal? nullValue = null;
        if (nullValue == null)
        {
            nullValue = 0;
        }

        ColumnSeries colSeries2 = RadHtmlChart1.PlotArea.Series[1] as ColumnSeries;
        colSeries2.SeriesItems.Add(39);
        colSeries2.SeriesItems.Add(nullValue);
        colSeries2.SeriesItems.Add(3);
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
4 comments
JAIME
Posted on: 18 May 2015 12:57
if the issue is resolved, how can i implement?...
never mind, I found the way
 If dbRow("v") Is DBNull.Value Then
     Dim v As New CategorySeriesItem
     val.SeriesItems.Add(v)
 Else
     val.SeriesItems.Add(dbRow("v"))
 End If

ADMIN
Misho
Posted on: 11 Mar 2015 12:26
The issue is resolved and the fix will be available for Q1 2015 SP1.
Michael Hunt
Posted on: 23 Jan 2015 19:40
This is killing me.  You gotta fix this.  I'm programatically creating LineSeries (because at design time I don't know how many series items a user will be charting, because I let them choose what to add to the chart) and having the null values convert to zero is just wrong.
maurizio brusini
Posted on: 01 Apr 2014 11:39
Great ! This resolved my problems lol, thank a lot
Maurizio Brusini