-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Pie chart focus spacing #28504
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
Merged
AtishayMsft
merged 52 commits into
microsoft:master
from
yush-singla:pie-chart-focus-spacing
Aug 24, 2023
Merged
Pie chart focus spacing #28504
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
4fb4fbd
changes for pie chart accessibiilty issues
singlayush f089da0
pie chart accessibility
singlayush cf47e6e
pie chart accessibility issue fixed, also example width adjustment added
singlayush 8d31ab2
examples made width and height adjustable
singlayush 3e797b0
fixed svg tooltip text
singlayush 2760098
added role to multistacked bar chart
singlayush 9c369ca
pie chart build fixes and snapshot updates
singlayush 2e02515
screen reader bug fixes
singlayush 827a430
Merge branch 'master' of https://github.com/microsoft/fluentui into p…
singlayush 9d8d81e
pie chart POC
singlayush b321e75
pie chart spacing added betweeen the pie
singlayush 81b1c28
snapshots updated
singlayush a5a1221
removed unused imports
singlayush 2a9f6ab
Merge branch 'master' into pie-chart-focus-spacing
yush-singla 515bad4
examples fixed
singlayush 5281f8f
Merge branch 'pie-chart-focus-spacing' of https://github.com/yush-sin…
singlayush 96441c1
Merge branch 'master' into pie-chart-focus-spacing
yush-singla 8fde75a
fixed changes post review
singlayush 595d65b
Merge branch 'pie-chart-focus-spacing' of https://github.com/yush-sin…
singlayush 7661478
upddated snaphots
singlayush a027380
Merge branch 'master' of https://github.com/microsoft/fluentui into p…
singlayush 75f836e
lint fix
singlayush b76477b
lint fix
singlayush 9fbea37
fixed pie chart color behaviour
singlayush c8b0a8f
Merge branch 'master' of https://github.com/microsoft/fluentui into p…
singlayush 177e567
fixed PR issues
singlayush 9fe14c6
snapshot updates
singlayush 6ad3845
Merge branch 'master' into pie-chart-focus-spacing
yush-singla 8de0c12
testing with adding the component to the application
singlayush 5de7a77
Merge branch 'vr-tests-experimentation' into pie-chart-focus-spacing
singlayush ef75286
Merge branch 'master' of https://github.com/microsoft/fluentui into p…
singlayush a59ff6c
removed vr test
singlayush 5a9054d
Merge branch 'master' of https://github.com/microsoft/fluentui into p…
singlayush c0a16e0
added pie chart fixes
singlayush cdca5ab
Merge branch 'pie-chart-focus-spacing' of https://github.com/yush-sin…
singlayush 1403a05
pr issue resolution
singlayush 7330024
updated snapshots
singlayush 46c6e8f
fixed eslint error
singlayush 317816f
Merge branch 'pie-chart-focus-spacing' of https://github.com/yush-sin…
b461958
fixed dark theme bug in pie chart
668304c
Merge branch 'master' of https://github.com/microsoft/fluentui into p…
2095b11
Merge branch 'master' of https://github.com/microsoft/fluentui into p…
30767f9
added mock function to snapshot test for pie chart
31ceac3
Merge branch 'master' of https://github.com/microsoft/fluentui into p…
singlayush e4fbf26
fixing pr comments
singlayush 6fdafce
fixed RTL bug
singlayush 1ae4489
updated snapshots
singlayush f22e1af
Merge branch 'master' into pie-chart-focus-spacing
yush-singla 2bee446
Merge branch 'master' of https://github.com/microsoft/fluentui into p…
singlayush 9d7c9df
Merge branch 'master' of https://github.com/microsoft/fluentui into p…
singlayush 04f4886
added classname arc
singlayush 140d2bc
Merge branch 'pie-chart-focus-spacing' of https://github.com/yush-sin…
singlayush File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@fluentui-react-charting-7ed503a2-d9d1-4679-8074-c67eb83161e1.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
AtishayMsft marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "type": "patch", | ||
| "comment": "fixed accessibility issues in pie chart", | ||
| "packageName": "@fluentui/react-charting", | ||
| "email": "yushsingla@microsoft.com", | ||
yush-singla marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "dependentChangeType": "patch" | ||
| } | ||
9 changes: 6 additions & 3 deletions
9
packages/react-charting/src/components/PieChart/Arc/Arc.styles.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,11 @@ | ||
| import { IArcProps, IArcStyles } from './Arc.types'; | ||
| import { DefaultPalette } from '@fluentui/react/lib/Styling'; | ||
| export const getStyles = (props: IArcProps): IArcStyles => { | ||
| import { DefaultPalette, ITheme } from '@fluentui/react/lib/Styling'; | ||
| export const getStyles = (props: IArcProps, theme: ITheme | undefined): IArcStyles => { | ||
| const { color } = props; | ||
| return { | ||
| root: { fill: color, stroke: DefaultPalette.white, strokeWidth: 2 }, | ||
| arcRoot: { fill: color }, | ||
| arcRootFocussed: { fill: color, stroke: theme?.palette.black || DefaultPalette.black, strokeWidth: 2 }, | ||
| arc: { outline: 'none' }, | ||
| arcText: { fill: theme?.palette.black || DefaultPalette.black, outline: 'none' }, | ||
| }; | ||
| }; |
96 changes: 81 additions & 15 deletions
96
packages/react-charting/src/components/PieChart/Arc/Arc.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.