question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Interpolate or duplicate missing data values

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
eLvErDecommented, Mar 12, 2019

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é.

4reactions
junedchhipacommented, Mar 12, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Interpolate Missing Values in Excel? - GeeksforGeeks
Linear Interpolation means estimating a missing value by connecting dots in the straight line in increasing order. It estimates the unknown ...
Read more >
Handling Missing Data In Python Using Interpolation Method
In Python, Interpolation is a technique mostly used to impute missing values in the data frame or series while preprocessing data.
Read more >
How To Handle Missing Data In Python With Interpolation
Interpolation is a method for generating points between given points. In Python, Interpolation is a technique mostly used to impute missing ...
Read more >
Missing data filling method based on linear interpolation and ...
The process can generally be divided into 2 steps: First, linear interpolation is exploited to process short-term missing data. Then the LightGBM can...
Read more >
Interpolation functions - Amazon Timestream
If your time series data is missing values for events at certain points in time, you can estimate the values of those missing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found