-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(react-charting): Add fill for scatter polar charts #35236
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
base: master
Are you sure you want to change the base?
feat(react-charting): Add fill for scatter polar charts #35236
Conversation
📊 Bundle size report✅ No changes found |
Pull request demo site: URL |
change/@fluentui-react-charting-f3c3732b-cfa8-44f4-8408-805ad41537f4.json
Show resolved
Hide resolved
findCalloutPoints, | ||
} from '../../utilities/index'; | ||
import { IChart, IImageExportOptions } from '../../types/index'; | ||
import { toImage } from '../../utilities/image-export-utils'; |
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.
instead of defining path yourself you can use d3Line
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.
updated
linesForLine.push( | ||
<path | ||
key={`scatterpolar_fill_${i}`} | ||
d={`${fillPath}Z`} |
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.
Is this Z needed
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.
yes, it is required to close the path
Work item https://uifabric.visualstudio.com/iss/_workitems/edit/13504

Before:
After:
