ml150
Posts: 1
Joined: Tue Aug 16, 2022 7:29 pm

Disable interpolation in stacked area chart

We have a stacked area chart which is a time series chart with dates along the x axis. We have long periods where data is missing and the chart is filling in that space by connecting the last valid date with the next valid one which results in a straight line/area drawn between the two. Is it possible to tell highcharts to not show anything in this space for a stacked area chart? So do not interpolate? I did try the connectNulls property and set it to false but that had no effect.
stacked_area.png
stacked_area.png (36.71 KiB) Viewed 234 times
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Disable interpolation in stacked area chart

Hi ml150!
Welcome to our forum and thanks for contacting us with your question!

I think the easiest and the best solution will be to just add a fake point with y as null the next day when you don't have data. You can check it in the example below, in line 60.

Demo: https://jsfiddle.net/BlackLabel/bvhcrmn5/

Let me know if that was what you were looking for.
Best regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Usage”