Skip to content

Container | XY: Handle edge cases when scaleByDomain is true#588

Merged
lee00678 merged 2 commits into
f5:mainfrom
ExaForce:fix/scale-by-domain-edge-cases
Jul 9, 2025
Merged

Container | XY: Handle edge cases when scaleByDomain is true#588
lee00678 merged 2 commits into
f5:mainfrom
ExaForce:fix/scale-by-domain-edge-cases

Conversation

@rokotyan

@rokotyan rokotyan commented Jun 20, 2025

Copy link
Copy Markdown
Contributor

There could be situations when there are no data points, or only a single data point remains after filterDataByRange when calculating the domain. This was causing XY charts to go off-screen because the domain was calculated improperly.

This change addresses the issue by including neighboring data points in the filtered results.

Before

image

After

image

rokotyan added 2 commits July 9, 2025 13:44
There could be situations when there are no data points, or only a single data point remains after `filterDataByRange` when calculating the domain. This was causing XY charts to go off-screen because the domain was calculated improperly.

This change addresses the issue by including neighboring data points in the filtered results.
@rokotyan rokotyan force-pushed the fix/scale-by-domain-edge-cases branch from 659343c to ab6208d Compare July 9, 2025 20:48
@rokotyan rokotyan marked this pull request as ready for review July 9, 2025 20:50
@lee00678 lee00678 merged commit 194edce into f5:main Jul 9, 2025
4 checks passed
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.

2 participants