-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Enable 'tozeroy' mode for Area Charts #33581
base: master
Are you sure you want to change the base?
Conversation
📊 Bundle size report✅ No changes found |
f54f284
to
43263f2
Compare
75a3500
to
7fbe2c1
Compare
7fbe2c1
to
561c69e
Compare
Pull request demo site: URL |
packages/charts/react-charting/src/components/AreaChart/AreaChart.types.ts
Outdated
Show resolved
Hide resolved
packages/charts/react-charting/src/components/AreaChart/AreaChart.base.tsx
Outdated
Show resolved
Hide resolved
packages/charts/react-charting/src/components/AreaChart/AreaChart.base.tsx
Outdated
Show resolved
Hide resolved
packages/charts/react-charting/src/components/AreaChart/AreaChart.base.tsx
Show resolved
Hide resolved
packages/charts/react-charting/src/components/AreaChart/AreaChart.base.tsx
Outdated
Show resolved
Hide resolved
currentStack.push({ | ||
values: d, | ||
currentLayer.push({ | ||
values: this.props.mode === AreaChartModes.toZeroY ? [0, d[1]] : d, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a snapshot test for this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
packages/charts/react-charting/src/components/AreaChart/AreaChart.base.tsx
Outdated
Show resolved
Hide resolved
packages/charts/react-charting/src/components/AreaChart/AreaChart.base.tsx
Outdated
Show resolved
Hide resolved
🕵 fluentuiv8 No visual regressions between this PR and main |
Can you share a screenshot of the implementation |
already updated the description with the screenshot |
Not clear in the description. It has percentage and not absolute values |
Enable 'tozeroy' mode for Area Charts