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

AG-12978 Normalised stacked area nulls and zeroes #3121

Draft
wants to merge 6 commits into
base: latest
Choose a base branch
from

Conversation

lsjroberts
Copy link
Member

@lsjroberts lsjroberts commented Dec 4, 2024

@lsjroberts lsjroberts force-pushed the AG-12978-normalised-stacked-area branch from b123af1 to a2fccf0 Compare December 4, 2024 09:54
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct – except there should be no marker for ie at 2018.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct

Copy link
Member Author

@lsjroberts lsjroberts Dec 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct

@lsjroberts lsjroberts force-pushed the AG-12978-normalised-stacked-area branch from a2fccf0 to d2ffa32 Compare December 4, 2024 10:43
Comment on lines 219 to 218
// Note - Array.isArray(new Float64Array) is false, and this type is used for stack accumulators
const valueExtent = typeof value === 'number' ? value : Math.max(...value.map((v) => v ?? 0));
const valIdx = valueExtent < 0 ? 0 : 1;
if (value == null || typeof value !== 'number') continue;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The array here looked to just be an accumulator, the actual values are the non-array ones so I believe we can just skip those?

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