Skip to content

Commit

Permalink
feat(chart-web-components): Create chart web components - Donut and H…
Browse files Browse the repository at this point in the history
…orizontal Bar Chart (#33084)

Co-authored-by: Anush Gupta <[email protected]>
Co-authored-by: krkshitij <[email protected]>
Co-authored-by: v-baambati <[email protected]>
Co-authored-by: Kumar Kshitij <[email protected]>
  • Loading branch information
5 people authored Jan 14, 2025
1 parent e7a954a commit 5964b11
Show file tree
Hide file tree
Showing 67 changed files with 4,960 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ apps/chart-docsite @microsoft/charting-team
#### Packages
packages/azure-themes @Jacqueline-ms @robtaft-ms
packages/react-conformance @microsoft/fluentui-react-build
packages/charts/chart-web-components @microsoft/charting-team
packages/charts/react-charting @microsoft/charting-team
packages/charts/react-charts-preview/library @microsoft/charting-team
packages/charts/react-charts-preview/stories @microsoft/charting-team
Expand Down
1 change: 1 addition & 0 deletions apps/pr-deploy-site/just.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const dependencies = [
'@fluentui/public-docsite',
'@fluentui/react',
'@fluentui/react-charting',
'@fluentui/chart-web-components',
'@fluentui/chart-docsite',
'@fluentui/public-docsite-v9',
'@fluentui/react-experiments',
Expand Down
6 changes: 6 additions & 0 deletions apps/pr-deploy-site/pr-deploy-site.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ var siteInfo = [
icon: 'BarChart4',
title: 'Charting',
},
{
package: '@fluentui/chart-web-components',
link: './chart-web-components/storybook/index.html',
icon: 'BarChart4',
title: 'Chart web components',
},
{
package: '@fluentui/theming-designer',
link: './theming-designer/index.html',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "Create chart web components. Includes donut chart and horizontal bar chart",
"packageName": "@fluentui/chart-web-components",
"email": "[email protected]",
"dependentChangeType": "patch"
}
8 changes: 8 additions & 0 deletions packages/charts/chart-web-components/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# don't ever lint node_modules
node_modules
# don't lint build output (make sure it's set to your correct build folder name)
dist
# don't lint coverage output
coverage
# don't lint storybook
.storybook
74 changes: 74 additions & 0 deletions packages/charts/chart-web-components/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "import"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:playwright/recommended"
],
"settings": {
"react": {
"version": "latest"
}
},
"rules": {
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"no-extra-boolean-cast": "off",
"no-prototype-builtins": "off",
"no-fallthrough": "off",
"no-unexpected-multiline": "off",
"no-useless-escape": "off",
"import/order": "error",
"sort-imports": [
"error",
{
"ignoreCase": true,
"ignoreDeclarationSort": true
}
],
"comma-dangle": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-empty-object-type": "off",
"@typescript-eslint/no-unsafe-declaration-merging": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"args": "none"
}
],
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": ["UPPER_CASE", "camelCase", "PascalCase"],
"leadingUnderscore": "allow"
},
{
"selector": "property",
"format": null // disable for property names because of our foo__expanded convention for JSS
// TODO: I think we can come up with a regex that ignores variables with __ in them
},
{
"selector": "variable",
"format": null // disable for variable names because of our foo__expanded convention for JSS
// TODO: I think we can come up with a regex that ignores variables with __ in them
}
]
}
}
1 change: 1 addition & 0 deletions packages/charts/chart-web-components/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test-results/
Loading

0 comments on commit 5964b11

Please sign in to comment.