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

Range area fixes for curve types: straight, stepline, linestep, smooth #4369

Merged

Conversation

rosco54
Copy link
Contributor

@rosco54 rosco54 commented Mar 31, 2024

RangeArea fixes for data series with nulls

Together with previously merged changes includes curve types:
straight, stepline, linestep, smooth

  • Refactored the curve-specific branches in Line.createPaths()
  • Fix typo in conditional: 'monotonCubic'.
  • Clamp marker sizes to >= zero to avoid console errors. (Only occurred with markers on series with null datapoints.)
  • Aesthetic update to e2e sample.

Unchanged from previous:

Does not fix the animation glitches due to pathsFrom/pathsTo not handling nulls.

Issues addressed

Fixes #3525
Fixes #3821

Type of change

  • Bug fix (non-breaking change which fixes an issue)

All the usual tests have passed with these changes, including samples from the bug reports plus my own variants designed to be slightly more stressful for the code.

@rosco54 rosco54 marked this pull request as ready for review March 31, 2024 04:53
@rosco54 rosco54 marked this pull request as draft March 31, 2024 08:47
@rosco54 rosco54 force-pushed the RangeArea_update_straight_lines branch 3 times, most recently from b6c4bdd to 7af6f60 Compare April 1, 2024 02:28
@rosco54 rosco54 marked this pull request as ready for review April 1, 2024 02:42
@rosco54 rosco54 marked this pull request as draft April 2, 2024 01:12
Together with previously merged changes includes curve types:
straight, stepline, linestep, smooth

Refactored the curve-specific branches in Line.createPaths()

Fix typo 'monotonCubic'
Clamp marker sizes to >= zero to avoid console errors. (Only occurred
with markers on series with null datapoints.)
Aesthetic update to e2e sample.
@rosco54 rosco54 marked this pull request as ready for review April 2, 2024 04:10
@rosco54 rosco54 force-pushed the RangeArea_update_straight_lines branch from 7af6f60 to 453a911 Compare April 2, 2024 04:10
@junedchhipa junedchhipa merged commit b7293ca into apexcharts:main Apr 2, 2024
@rosco54 rosco54 deleted the RangeArea_update_straight_lines branch May 5, 2024 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Glitching with rangeArea and missing/null data RangeArea with null value removes fill color
2 participants