Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7751627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:35:50+00:00 2026-06-01T11:35:50+00:00

The API doesn’t show a proper example how to use connectNulls property. I had

  • 0

The API doesn’t show a proper example how to use connectNulls property. I had a few attempts but no luck. Here is what I have:

Attempt 1:

plotOptions : 
{   
   line: { connectNulls : true}
},

This results in: TypeError: Cannot read property 'x' of undefined

Attempt 2:

plotOptions : 
{   
    series: 
    { 
        gapSize: null, 
        line: { connectNulls : true} 
    }
},

This doesn’t give me any errors, so I assume this is closest to be the correct way, however nothing changes: the points from either side of null points are not connected.

Can anyone share a code snipped that shows the correct way of doing it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T11:35:51+00:00Added an answer on June 1, 2026 at 11:35 am

    The highcharts API has two examples for the connectNulls property: one for true, and one for false.

    http://api.highcharts.com/highcharts#series.connectNulls

    The true example: http://jsfiddle.net/gh/get/jquery/1.7.1/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/series-connectnulls-true/

    A snippet from the true example:

       plotOptions: {
            series: {
                connectNulls: true
            }
        },
    

    The false example: http://jsfiddle.net/gh/get/jquery/1.7.1/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/series-connectnulls-false/

    A snippet from the false the example:

    plotOptions: {
        series: {
            // connectNulls: false // by default
        }
    },
    

    The default of false is a thoughtful choice, because when you connect values when there is no data, the results can lead to false assumptions on the part of the viewer of the chart.

    UPDATE

    Here’s a Highstock example:

    $(function() {
    
            window.chart = new Highcharts.StockChart({
                chart : {
                    renderTo : 'container'
                },
    
                rangeSelector : {
                    selected : 1
                },
    
                title : {
                    text : 'AAPL Stock Price'
                },
    
                series : [{
                    name : 'AAPL',
                 connectNulls: true, 
                    data : [
      [1112832000000,43.56],
    [1112918400000,43.74],
    [1113177600000,41.92],
    [1113264000000,null],
    [1113350400000,null],
    [1113436800000,37.26],
    [1113523200000,35.35],
    [1113782400000,35.62],
    [1113868800000,37.09],
    [1113955200000,35.51],
    [1114041600000,37.18],
    [1114128000000,35.50],
    [1114387200000,36.98],
    [1114473600000,36.19],
    [1114560000000,35.95],
    [1114646400000,35.54],
            [1114732800000,36.06]          
            ],
                    tooltip: {
                        valueDecimals: 2
                    }
                }]
            });
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm faced with a legacy API that doesn't use .NET events, but rather requires
I use an external API where a domain/key-pair is needed, and the domain-name doesn't
I am trying to make a chrome plugin but Chrome API doesn't give me
This is not close to real situation, but it shows that Expressions API doesn't
I'm trying to code a user admin page, but the Membership API doesn't allow
The API doesn't seem promising.
Google Maps API V3 doesn't support the V2 GOverviewMapControl option, yet. I've come across
Starting from this official statement that all xyAndroid versions previous API 11 doesn't support
When developing a plug-in to application, using the application API which doesn't run independently
Why doesn't this Google Chart API URL render both data sets on this XY

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.