HELP - cant assign null to Y axis data

Aug 17, 2012 at 12:10 PM
Edited Aug 17, 2012 at 2:21 PM

Hi guys,

I've create a datapoint class that has 2 prooperties as below:


class DataPoint
        public object X {get; set;}
        public object Y { get; set; }

        public DataPoint()


when I am inserting a null value to the Y object its not getting passed into the series data

{ x: 1342765800000 }

I also get the same output if I set the data using the Point object as below?

dat.Add(new DotNet.Highcharts.Options.Point()
                                X = Utilities.ConvertToUnixTimestamp((DateTime)item.ReadingDate) * 1000,
                                Y = null

Any ideas on actually getting a null value passed?

Sep 17, 2012 at 11:23 PM

In the PlotOptions there is a property called ConnectNulls. Its false by default.

Jan 18, 2013 at 3:05 PM
Edited Jan 18, 2013 at 4:16 PM

same problem here. ConnectNulls is not what he asked. Basically the rendered code has no Y value in it. it's not y:null, it's just empty.


I have found a way to assign null.

Basically I alter the chart's ToHtmlString result like this:

   ltrHighchartGraph.Text = _newChart.ToHtmlString().Replace(NullValue, "null")

NullValue is a unique constant,e.g. -9999999999 or whatever value you want to put as unique null value. Then before you put into literal control, you replace this with null.

Marked as answer by Vangi on 10/24/2013 at 3:00 AM