Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing null values at line chart #3641

Closed
AitorMihashi opened this issue Feb 7, 2023 · 4 comments
Closed

Missing null values at line chart #3641

AitorMihashi opened this issue Feb 7, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@AitorMihashi
Copy link

Description

The scatter dot dissapears when moving the cursor over the chart

Steps to Reproduce

  1. Open this URL
  2. Go to the chart and move around
  3. You will see that the green point at X:4, Y:12 dissapears and move to the point where you leave the chart

Expected Behavior

The green scatter point stays at it´s position even when you move your mouse over the chart.

Actual Behavior

The scatter green point is dragged and dropped at a X point when you go out of the chart

Screenshots

Chart when you load the page
image

Chart when you move the mouse over
image

Reproduction Link

https://apexcharts.com/javascript-chart-demos/line-charts/null-values/

@AitorMihashi AitorMihashi added the bug Something isn't working label Feb 7, 2023
@Guziq
Copy link

Guziq commented Sep 20, 2024

I've also noticed that, for some data points, the dots disappear completely. For example, this works fine:

{
  name: 'Peter',
  data: [null, 2000, null, 2000, null, 2000, null, 2000, null, 2000, null, null, null, 2000, null, null, 40, null],
}

However, when I replace the value 40 with null in the following dataset:

{
  name: 'Peter',
  data: [null, 2000, null, 2000, null, 2000, null, 2000, null, 351, null, null, null, 2000, null, null, null, null],
}

The graph disappears completely.

I found that setting:

stroke: {
    curve: 'monotoneCubic',
},

Fix all the issues.

@AitorMihashi
Copy link
Author

@Guziq Can you tell me with apexcharts version are you using?

@ledpup
Copy link

ledpup commented Dec 22, 2024

This is somewhat related to the issue above. In a chart with null values, there is some weird artefacting going on after the mouse leaves the chart.

If you look at the image below, the three dots I've circled in red shouldn't be there at all.

You can reproduce the issue by having 10 as the last x-axis value you were hovering on and then move the mouse outside of the chart.

image

@ledpup
Copy link

ledpup commented Dec 22, 2024

@Guziq Can you tell me with apexcharts version are you using?

They're using the demo page at https://apexcharts.com/javascript-chart-demos/line-charts/null-values/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants