Accepted answer

well, i figured out how to solve it,

in my particular case, i had to check if the timespan between two datapoints is more than for example "2 hours" , then i would add a datapoint between those points and set it's value to null.

since i'm using dotnet.highcharts, these steps are being performed using my mvc controller logic.

 //dtvaluesgrouped is a list of type <datavalue> which is my data container class.

 sorteddictionary<string, double?> sorteddict = new sorteddictionary<string, double?>();
    if (dtvalues[j + 1].datetime - dtvalues[j].datetime> timespan.fromhours(2))
            (dtvaluesgrouped[j].datetime+ timespan.fromhours(1.5)),

 // and i will finally convert the sorteddictionary to an array of object[,] and set it to


perhaps if you insert null values for those data points and make sure connectnulls is set to false.

$(function () {

        chart: {

        xaxis: {
            categories: ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']

        plotoptions: {
            series: {
                // connectnulls: false // by default

        series: [{
            data: [29.9, 71.5, 106.4, 129.2, null, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]


Related Query

More Query from same tag