Apexcharts.js: Interpolate or duplicate missing data values

Created on 5 Oct 2018  路  9Comments  路  Source: apexcharts/apexcharts.js

AFAIK currently there's no way to draw lines on missing data on line charts, only points are drawn.
https://codepen.io/anon/pen/WaxKdp

This doesn't look alright when there's many missing data
image

Although one can fill that data by specifying interpolated values or repeating former value it would be nice to have an option to just have an Apex charts option on how these null values should be handled.

And there's no way to set a different stroke for such "filled" line segments.

I would suggest the following:

options:
  nullValues: {
    fill: false | 'interpolate' | 'repeat',
    stroke: {
      width: 2,
      dashSpacing: 5,
    }
  }

Alternative option title could be seriesNulls or seriesEmptyValueHandling

feature-request

Most helpful comment

Replacing null values with the former values while drawing seems like an appropriate way to handle it. I will research more on what are other options and see the possibilities of adding this feature.

All 9 comments

+1, you can still pre-process data to drop null value, but that's definitely a required feature

Replacing null values with the former values while drawing seems like an appropriate way to handle it. I will research more on what are other options and see the possibilities of adding this feature.

Check python pandas interpolate documentation if you want to see more options ;-)

Le 12 mars 2019 09:09:43 GMT+01:00, Juned Chhipa notifications@github.com a 茅crit :

Replacing null values with the former values while drawing seems like
an appropriate way to handle it. I will research more on what are other
options and see the possibilities of adding this feature.

--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/apexcharts/apexcharts.js/issues/146#issuecomment-471897530

--
Envoy茅 de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma bri猫vet茅.

+1

+1

This would be very helpful!

Similar to #747 with more details on how this feature would look like.

@junedchhipa any update on this issue?

+1.

Is there any plans to add a feature improvement for this?
It seems this issue links to #747, and vice versa, with no clear resolution or intention.
Thanks! 馃槂

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rudeayelo picture rudeayelo  路  3Comments

Sumon-miazi picture Sumon-miazi  路  3Comments

tcarlsen picture tcarlsen  路  3Comments

ordago picture ordago  路  3Comments

artfulrobot picture artfulrobot  路  3Comments