@carbon/charts-angular 1.8.0 → 1.9.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +51 -0
- package/.storybook/carbon-charts-theme.ts +8 -0
- package/.storybook/main.ts +39 -0
- package/.storybook/manager-head.html +22 -0
- package/.storybook/manager.ts +6 -0
- package/.storybook/preview-head.html +6 -0
- package/.storybook/preview.ts +42 -0
- package/.storybook/tsconfig.json +21 -0
- package/.storybook/typings.d.ts +4 -0
- package/README.md +0 -2
- package/angular.json +91 -0
- package/carbon.yml +277 -0
- package/ng-package.json +14 -0
- package/package.json +89 -63
- package/src/index.ts +53 -0
- package/src/lib/charts/alluvial-chart.component.ts +30 -0
- package/src/lib/charts/area-chart-stacked.component.ts +30 -0
- package/src/lib/charts/area-chart.component.ts +30 -0
- package/src/lib/charts/bar-chart-grouped.component.ts +30 -0
- package/src/lib/charts/bar-chart-simple.component.ts +30 -0
- package/src/lib/charts/bar-chart-stacked.component.ts +30 -0
- package/src/lib/charts/base-chart.component.ts +91 -0
- package/src/lib/charts/boxplot-chart.component.ts +30 -0
- package/src/lib/charts/bubble-chart.component.ts +30 -0
- package/src/lib/charts/bullet-chart.component.ts +30 -0
- package/src/lib/charts/charts.module.ts +92 -0
- package/src/lib/charts/choropleth.component.ts +33 -0
- package/src/lib/charts/circle-pack-chart.component.ts +30 -0
- package/src/lib/charts/combo-chart.component.ts +30 -0
- package/src/lib/charts/donut-chart.component.ts +30 -0
- package/src/lib/charts/gauge-chart.component.ts +30 -0
- package/src/lib/charts/heatmap-chart.component.ts +30 -0
- package/src/lib/charts/histogram-chart.component.ts +30 -0
- package/src/lib/charts/index.ts +28 -0
- package/src/lib/charts/line-chart.component.ts +30 -0
- package/src/lib/charts/lollipop-chart.component.ts +30 -0
- package/src/lib/charts/meter-chart.component.ts +30 -0
- package/src/lib/charts/pie-chart.component.ts +30 -0
- package/src/lib/charts/radar-chart.component.ts +30 -0
- package/src/lib/charts/scatter-chart.component.ts +30 -0
- package/src/lib/charts/tree-chart.component.ts +30 -0
- package/src/lib/charts/treemap-chart.component.ts +30 -0
- package/src/lib/charts/wordcloud-chart.component.ts +30 -0
- package/src/lib/diagrams/config.ts +1 -0
- package/src/lib/diagrams/edges/edge.component.ts +41 -0
- package/src/lib/diagrams/edges/edge.module.ts +11 -0
- package/src/lib/diagrams/edges/marker/marker.component.ts +112 -0
- package/src/lib/diagrams/edges/marker/marker.module.ts +43 -0
- package/src/lib/diagrams/index.ts +23 -0
- package/src/lib/diagrams/nodes/cards/card-node-column.component.ts +22 -0
- package/src/lib/diagrams/nodes/cards/card-node-label.component.ts +14 -0
- package/src/lib/diagrams/nodes/cards/card-node-subtitle.component.ts +14 -0
- package/src/lib/diagrams/nodes/cards/card-node-title.component.ts +14 -0
- package/src/lib/diagrams/nodes/cards/card-node.component.ts +98 -0
- package/src/lib/diagrams/nodes/cards/card-node.module.ts +32 -0
- package/src/lib/diagrams/nodes/shape/shape-node.component.ts +120 -0
- package/src/lib/diagrams/nodes/shape/shape-node.module.ts +11 -0
- package/src/lib/index.ts +50 -0
- package/src/stories/0-api.stories.mdx +69 -0
- package/src/stories/1-color-palette.stories.mdx +73 -0
- package/src/stories/2-combo-charts.stories.mdx +107 -0
- package/src/stories/3-dual-axes-charts.stories.mdx +51 -0
- package/src/stories/4-event-listeners.stories.mdx +26 -0
- package/src/stories/5-tabular-data-format.stories.mdx +132 -0
- package/src/stories/6-themes.stories.mdx +50 -0
- package/src/stories/all.stories.ts +104 -0
- package/src/stories/angular.stories.mdx +136 -0
- package/src/stories/diagrams/0-diagrams-start-here.stories.ts +219 -0
- package/src/stories/diagrams/diagrams-edges-marker.stories.ts +189 -0
- package/src/stories/diagrams/diagrams-edges.stories.ts +177 -0
- package/src/stories/diagrams/diagrams-nodes-card.stories.ts +245 -0
- package/src/stories/diagrams/diagrams-nodes-shape.stories.ts +141 -0
- package/src/stories/diagrams/utils.ts +5 -0
- package/src/test.ts +28 -0
- package/tsconfig.json +43 -0
- package/tsconfig.lib.json +14 -0
- package/tsconfig.lib.prod.json +11 -0
- package/tsconfig.spec.json +17 -0
- package/tsconfig.vite.json +13 -0
- package/vite.config.ts +22 -0
- package/LICENSE.md +0 -201
- package/alluvial-chart.component.d.ts +0 -13
- package/area-chart-stacked.component.d.ts +0 -13
- package/area-chart.component.d.ts +0 -13
- package/bar-chart-grouped.component.d.ts +0 -13
- package/bar-chart-simple.component.d.ts +0 -13
- package/bar-chart-stacked.component.d.ts +0 -13
- package/base-chart.component.d.ts +0 -44
- package/boxplot-chart.component.d.ts +0 -13
- package/bubble-chart.component.d.ts +0 -13
- package/bullet-chart.component.d.ts +0 -13
- package/bundles/carbon-charts-angular.umd.js +0 -2156
- package/bundles/carbon-charts-angular.umd.js.map +0 -1
- package/bundles/carbon-charts-angular.umd.min.js +0 -16
- package/bundles/carbon-charts-angular.umd.min.js.map +0 -1
- package/carbon-charts-angular.d.ts +0 -5
- package/carbon-charts-angular.metadata.json +0 -1
- package/charts.module.d.ts +0 -2
- package/choropleth.component.d.ts +0 -13
- package/circle-pack-chart.component.d.ts +0 -13
- package/combo-chart.component.d.ts +0 -13
- package/diagrams/card-node/card-node-column.component.d.ts +0 -4
- package/diagrams/card-node/card-node-label.component.d.ts +0 -3
- package/diagrams/card-node/card-node-subtitle.component.d.ts +0 -3
- package/diagrams/card-node/card-node-title.component.d.ts +0 -3
- package/diagrams/card-node/card-node.component.d.ts +0 -17
- package/diagrams/card-node/card-node.module.d.ts +0 -8
- package/diagrams/configs.d.ts +0 -1
- package/diagrams/edge/edge.component.d.ts +0 -17
- package/diagrams/edge/edge.module.d.ts +0 -3
- package/diagrams/marker/marker.component.d.ts +0 -37
- package/diagrams/marker/marker.module.d.ts +0 -4
- package/diagrams/shape-node/shape-node.component.d.ts +0 -22
- package/diagrams/shape-node/shape-node.module.d.ts +0 -3
- package/donut-chart.component.d.ts +0 -13
- package/esm2015/alluvial-chart.component.js +0 -33
- package/esm2015/area-chart-stacked.component.js +0 -33
- package/esm2015/area-chart.component.js +0 -36
- package/esm2015/bar-chart-grouped.component.js +0 -33
- package/esm2015/bar-chart-simple.component.js +0 -33
- package/esm2015/bar-chart-stacked.component.js +0 -33
- package/esm2015/base-chart.component.js +0 -137
- package/esm2015/boxplot-chart.component.js +0 -33
- package/esm2015/bubble-chart.component.js +0 -33
- package/esm2015/bullet-chart.component.js +0 -33
- package/esm2015/carbon-charts-angular.js +0 -11
- package/esm2015/charts.module.js +0 -97
- package/esm2015/choropleth.component.js +0 -33
- package/esm2015/circle-pack-chart.component.js +0 -33
- package/esm2015/combo-chart.component.js +0 -33
- package/esm2015/diagrams/card-node/card-node-column.component.js +0 -41
- package/esm2015/diagrams/card-node/card-node-label.component.js +0 -27
- package/esm2015/diagrams/card-node/card-node-subtitle.component.js +0 -27
- package/esm2015/diagrams/card-node/card-node-title.component.js +0 -27
- package/esm2015/diagrams/card-node/card-node.component.js +0 -148
- package/esm2015/diagrams/card-node/card-node.module.js +0 -23
- package/esm2015/diagrams/configs.js +0 -8
- package/esm2015/diagrams/edge/edge.component.js +0 -80
- package/esm2015/diagrams/edge/edge.module.js +0 -19
- package/esm2015/diagrams/marker/marker.component.js +0 -141
- package/esm2015/diagrams/marker/marker.module.js +0 -35
- package/esm2015/diagrams/shape-node/shape-node.component.js +0 -187
- package/esm2015/diagrams/shape-node/shape-node.module.js +0 -19
- package/esm2015/donut-chart.component.js +0 -33
- package/esm2015/gauge-chart.component.js +0 -33
- package/esm2015/heatmap-chart.component.js +0 -33
- package/esm2015/histogram-chart.component.js +0 -33
- package/esm2015/index.js +0 -45
- package/esm2015/line-chart.component.js +0 -33
- package/esm2015/lollipop-chart.component.js +0 -33
- package/esm2015/meter-chart.component.js +0 -33
- package/esm2015/pie-chart.component.js +0 -33
- package/esm2015/radar-chart.component.js +0 -33
- package/esm2015/scatter-chart.component.js +0 -33
- package/esm2015/tree-chart.component.js +0 -33
- package/esm2015/treemap-chart.component.js +0 -33
- package/esm2015/wordcloud-chart.component.js +0 -33
- package/esm5/alluvial-chart.component.js +0 -47
- package/esm5/area-chart-stacked.component.js +0 -47
- package/esm5/area-chart.component.js +0 -47
- package/esm5/bar-chart-grouped.component.js +0 -47
- package/esm5/bar-chart-simple.component.js +0 -47
- package/esm5/bar-chart-stacked.component.js +0 -47
- package/esm5/base-chart.component.js +0 -160
- package/esm5/boxplot-chart.component.js +0 -47
- package/esm5/bubble-chart.component.js +0 -47
- package/esm5/bullet-chart.component.js +0 -47
- package/esm5/carbon-charts-angular.js +0 -11
- package/esm5/charts.module.js +0 -101
- package/esm5/choropleth.component.js +0 -47
- package/esm5/circle-pack-chart.component.js +0 -47
- package/esm5/combo-chart.component.js +0 -47
- package/esm5/diagrams/card-node/card-node-column.component.js +0 -43
- package/esm5/diagrams/card-node/card-node-label.component.js +0 -25
- package/esm5/diagrams/card-node/card-node-subtitle.component.js +0 -25
- package/esm5/diagrams/card-node/card-node-title.component.js +0 -25
- package/esm5/diagrams/card-node/card-node.component.js +0 -86
- package/esm5/diagrams/card-node/card-node.module.js +0 -27
- package/esm5/diagrams/configs.js +0 -8
- package/esm5/diagrams/edge/edge.component.js +0 -64
- package/esm5/diagrams/edge/edge.module.js +0 -23
- package/esm5/diagrams/marker/marker.component.js +0 -188
- package/esm5/diagrams/marker/marker.module.js +0 -39
- package/esm5/diagrams/shape-node/shape-node.component.js +0 -104
- package/esm5/diagrams/shape-node/shape-node.module.js +0 -23
- package/esm5/donut-chart.component.js +0 -47
- package/esm5/gauge-chart.component.js +0 -47
- package/esm5/heatmap-chart.component.js +0 -47
- package/esm5/histogram-chart.component.js +0 -47
- package/esm5/index.js +0 -45
- package/esm5/line-chart.component.js +0 -47
- package/esm5/lollipop-chart.component.js +0 -47
- package/esm5/meter-chart.component.js +0 -47
- package/esm5/pie-chart.component.js +0 -47
- package/esm5/radar-chart.component.js +0 -47
- package/esm5/scatter-chart.component.js +0 -47
- package/esm5/tree-chart.component.js +0 -47
- package/esm5/treemap-chart.component.js +0 -47
- package/esm5/wordcloud-chart.component.js +0 -47
- package/fesm2015/carbon-charts-angular.js +0 -1722
- package/fesm2015/carbon-charts-angular.js.map +0 -1
- package/fesm5/carbon-charts-angular.js +0 -1924
- package/fesm5/carbon-charts-angular.js.map +0 -1
- package/gauge-chart.component.d.ts +0 -13
- package/heatmap-chart.component.d.ts +0 -13
- package/histogram-chart.component.d.ts +0 -13
- package/index.d.ts +0 -38
- package/line-chart.component.d.ts +0 -13
- package/lollipop-chart.component.d.ts +0 -13
- package/meter-chart.component.d.ts +0 -13
- package/pie-chart.component.d.ts +0 -13
- package/radar-chart.component.d.ts +0 -13
- package/scatter-chart.component.d.ts +0 -13
- package/tree-chart.component.d.ts +0 -13
- package/treemap-chart.component.d.ts +0 -13
- package/wordcloud-chart.component.d.ts +0 -13
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
"ignorePatterns": [
|
|
4
|
+
"!**/*",
|
|
5
|
+
".storybook/**/*.html"
|
|
6
|
+
],
|
|
7
|
+
"overrides": [
|
|
8
|
+
{
|
|
9
|
+
"files": [
|
|
10
|
+
"*.ts"
|
|
11
|
+
],
|
|
12
|
+
"extends": [
|
|
13
|
+
"eslint:recommended",
|
|
14
|
+
"plugin:@typescript-eslint/recommended",
|
|
15
|
+
"plugin:@angular-eslint/recommended",
|
|
16
|
+
"plugin:@angular-eslint/template/process-inline-templates",
|
|
17
|
+
"plugin:prettier/recommended",
|
|
18
|
+
"plugin:storybook/recommended"
|
|
19
|
+
],
|
|
20
|
+
"rules": {
|
|
21
|
+
"@angular-eslint/directive-selector": [
|
|
22
|
+
"error",
|
|
23
|
+
{
|
|
24
|
+
"type": "attribute",
|
|
25
|
+
"prefix": "lib",
|
|
26
|
+
"style": "camelCase"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"@angular-eslint/component-selector": [
|
|
30
|
+
"error",
|
|
31
|
+
{
|
|
32
|
+
"type": "element",
|
|
33
|
+
"prefix": "ibm",
|
|
34
|
+
"style": "kebab-case"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"files": [
|
|
41
|
+
"*.html"
|
|
42
|
+
],
|
|
43
|
+
"extends": [
|
|
44
|
+
"plugin:@angular-eslint/template/recommended",
|
|
45
|
+
"plugin:@angular-eslint/template/accessibility",
|
|
46
|
+
"plugin:prettier/recommended"
|
|
47
|
+
],
|
|
48
|
+
"rules": {}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { create } from '@storybook/theming'
|
|
2
|
+
|
|
3
|
+
export default create({
|
|
4
|
+
base: 'dark',
|
|
5
|
+
brandTitle: 'Carbon Charts - Angular',
|
|
6
|
+
brandTarget: '_self'
|
|
7
|
+
// fontBase: '"IBM Plex Sans", Arial, sans-serif' // throws off Storybook's icon alignment (only applies to left navigation)
|
|
8
|
+
})
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { StorybookConfig } from '@storybook/angular'
|
|
2
|
+
|
|
3
|
+
const config: StorybookConfig = {
|
|
4
|
+
stories: ['../src/stories/**/*.mdx', '../src/stories/**/*.stories.@(js|jsx|ts|tsx)'],
|
|
5
|
+
staticDirs: ['../../core/.storybook/assets'],
|
|
6
|
+
addons: [
|
|
7
|
+
{
|
|
8
|
+
name: '@storybook/addon-essentials',
|
|
9
|
+
options: {
|
|
10
|
+
actions: false
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
framework: {
|
|
15
|
+
name: '@storybook/angular',
|
|
16
|
+
options: {}
|
|
17
|
+
},
|
|
18
|
+
logLevel: 'error',
|
|
19
|
+
docs: {
|
|
20
|
+
autodocs: 'tag'
|
|
21
|
+
},
|
|
22
|
+
webpackFinal: async (config) => {
|
|
23
|
+
config?.module?.rules?.push({
|
|
24
|
+
test: /\.css$/,
|
|
25
|
+
use: ['style-loader', 'css-loader']
|
|
26
|
+
})
|
|
27
|
+
config.performance = {
|
|
28
|
+
hints: 'warning',
|
|
29
|
+
maxAssetSize: 1024 * 1024 * 2.5, // 2.5 MB
|
|
30
|
+
maxEntrypointSize: 1024 * 1024 * 5 // 5 MB
|
|
31
|
+
}
|
|
32
|
+
return config
|
|
33
|
+
},
|
|
34
|
+
features: {
|
|
35
|
+
storyStoreV7: false // required for storiesOf API
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export default config
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<meta name="keywords"
|
|
2
|
+
content="IBM, design, system, Carbon, design system, data visualization, charts, Bluemix, styleguide, style, guide, components, library, pattern, kit, component, cloud, angular" />
|
|
3
|
+
|
|
4
|
+
<meta name="description"
|
|
5
|
+
content="This is the core Angular version of Carbon Charts, an implementation of Carbon Design System's data-visualization patterns." />
|
|
6
|
+
|
|
7
|
+
<!-- Open Graph -->
|
|
8
|
+
<meta property="og:title" content="Carbon Charts - Angular" />
|
|
9
|
+
<meta property="og:site_name" content="Carbon Charts" />
|
|
10
|
+
<meta property="og:description"
|
|
11
|
+
content="This is the Angular version of Carbon Charts, an implementation of Carbon Design System's data-visualization patterns." />
|
|
12
|
+
<meta property="og:image" content="https://charts.carbondesignsystem.com/angular/share.png" />
|
|
13
|
+
<meta property="og:url" content="http://charts.carbondesignsystem.com/angular" />
|
|
14
|
+
|
|
15
|
+
<!-- Favicon -->
|
|
16
|
+
<link rel="icon" href="logo.svg" />
|
|
17
|
+
|
|
18
|
+
<!-- Social -->
|
|
19
|
+
<meta name="twitter:card" content="summary_large_image" />
|
|
20
|
+
<meta name="twitter:image:alt" content="Carbon Charts - Angular" />
|
|
21
|
+
<meta name="twitter:image" content="https://charts.carbondesignsystem.com/angular/share.png" />
|
|
22
|
+
<meta name="twitter:site" content="@_carbondesign" />
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<link rel="preconnect" crossorigin="anonymous" href="https://fonts.googleapis.com" />
|
|
2
|
+
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans+Condensed:300,400|IBM+Plex+Sans:400,600&display=swap"
|
|
3
|
+
rel="stylesheet" crossorigin="anonymous" />
|
|
4
|
+
<script>
|
|
5
|
+
window.global = window
|
|
6
|
+
</script>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Preview } from '@storybook/angular'
|
|
2
|
+
import { themes } from '@storybook/theming'
|
|
3
|
+
import '@carbon/charts/demo/styles.css'
|
|
4
|
+
|
|
5
|
+
const preview: Preview = {
|
|
6
|
+
parameters: {
|
|
7
|
+
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
8
|
+
controls: {
|
|
9
|
+
matchers: {
|
|
10
|
+
color: /(background|color)$/i,
|
|
11
|
+
date: /Date$/
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
docs: {
|
|
15
|
+
theme: themes.dark
|
|
16
|
+
},
|
|
17
|
+
backgrounds: {
|
|
18
|
+
// --cds-background
|
|
19
|
+
default: 'g100',
|
|
20
|
+
values: [
|
|
21
|
+
{
|
|
22
|
+
name: 'g100',
|
|
23
|
+
value: '#161616'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'g90',
|
|
27
|
+
value: '#262626'
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'g10',
|
|
31
|
+
value: '#f4f4f4'
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'white',
|
|
35
|
+
value: '#fff'
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export default preview
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../tsconfig.lib.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"baseUrl": "../",
|
|
5
|
+
"allowSyntheticDefaultImports": true,
|
|
6
|
+
"declaration": false,
|
|
7
|
+
"declarationMap": false,
|
|
8
|
+
"strict": true
|
|
9
|
+
},
|
|
10
|
+
"exclude": [
|
|
11
|
+
"../src/test.ts",
|
|
12
|
+
"../src/**/*.spec.ts"
|
|
13
|
+
],
|
|
14
|
+
"include": [
|
|
15
|
+
"../src/**/*",
|
|
16
|
+
"./preview.ts"
|
|
17
|
+
],
|
|
18
|
+
"files": [
|
|
19
|
+
"./typings.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
package/README.md
CHANGED
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
|
|
11
11
|
**[Storybook demo sources](https://github.com/carbon-design-system/carbon-charts/tree/master/packages/core/demo/data)**
|
|
12
12
|
|
|
13
|
-
**[Angular 13 example](https://github.com/nstuyvesant/carbon-charts-angular-13)**
|
|
14
|
-
|
|
15
13
|
## Getting started
|
|
16
14
|
|
|
17
15
|
Run the following command using [npm](https://www.npmjs.com/):
|
package/angular.json
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "./",
|
|
5
|
+
"projects": {
|
|
6
|
+
"charts-angular": {
|
|
7
|
+
"projectType": "library",
|
|
8
|
+
"root": ".",
|
|
9
|
+
"sourceRoot": "src",
|
|
10
|
+
"prefix": "ibm",
|
|
11
|
+
"architect": {
|
|
12
|
+
"build": {
|
|
13
|
+
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
14
|
+
"options": {
|
|
15
|
+
"project": "ng-package.json"
|
|
16
|
+
},
|
|
17
|
+
"configurations": {
|
|
18
|
+
"production": {
|
|
19
|
+
"tsConfig": "tsconfig.lib.prod.json"
|
|
20
|
+
},
|
|
21
|
+
"development": {
|
|
22
|
+
"tsConfig": "tsconfig.lib.json"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"defaultConfiguration": "production"
|
|
26
|
+
},
|
|
27
|
+
"test": {
|
|
28
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
29
|
+
"options": {
|
|
30
|
+
"main": "src/test.ts",
|
|
31
|
+
"tsConfig": "tsconfig.spec.json",
|
|
32
|
+
"polyfills": [
|
|
33
|
+
"zone.js",
|
|
34
|
+
"zone.js/testing"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"storybook": {
|
|
39
|
+
"builder": "@storybook/angular:start-storybook",
|
|
40
|
+
"options": {
|
|
41
|
+
"configDir": ".storybook",
|
|
42
|
+
"tsConfig": ".storybook/tsconfig.json",
|
|
43
|
+
"browserTarget": "charts-angular:build",
|
|
44
|
+
"compodoc": false,
|
|
45
|
+
"compodocArgs": [
|
|
46
|
+
"-e",
|
|
47
|
+
"json",
|
|
48
|
+
"-d",
|
|
49
|
+
"./"
|
|
50
|
+
],
|
|
51
|
+
"port": 9006,
|
|
52
|
+
"quiet": true
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"build-storybook": {
|
|
56
|
+
"builder": "@storybook/angular:build-storybook",
|
|
57
|
+
"options": {
|
|
58
|
+
"configDir": ".storybook",
|
|
59
|
+
"tsConfig": ".storybook/tsconfig.json",
|
|
60
|
+
"browserTarget": "charts-angular:build",
|
|
61
|
+
"compodoc": false,
|
|
62
|
+
"compodocArgs": [
|
|
63
|
+
"-e",
|
|
64
|
+
"json",
|
|
65
|
+
"-d",
|
|
66
|
+
"./"
|
|
67
|
+
],
|
|
68
|
+
"outputDir": "demo/bundle",
|
|
69
|
+
"quiet": true
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"lint": {
|
|
73
|
+
"builder": "@angular-eslint/builder:lint",
|
|
74
|
+
"options": {
|
|
75
|
+
"lintFilePatterns": [
|
|
76
|
+
"./**/*.ts",
|
|
77
|
+
"./**/*.html"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"cli": {
|
|
85
|
+
"analytics": false,
|
|
86
|
+
"packageManager": "yarn",
|
|
87
|
+
"schematicCollections": [
|
|
88
|
+
"@angular-eslint/schematics"
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
}
|
package/carbon.yml
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://unpkg.com/@carbon-platform/schemas@v1/carbon-resources.schema.json
|
|
2
|
+
library:
|
|
3
|
+
id: carbon-charts-angular
|
|
4
|
+
name: Carbon Charts Angular
|
|
5
|
+
description:
|
|
6
|
+
Tell accurate stories around data with beautiful and accessible
|
|
7
|
+
visualizations.
|
|
8
|
+
inherits: carbon-charts
|
|
9
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/getting-started
|
|
10
|
+
demoLinks:
|
|
11
|
+
- type: storybook
|
|
12
|
+
name: Storybook
|
|
13
|
+
action: link
|
|
14
|
+
url: https://charts.carbondesignsystem.com/angular
|
|
15
|
+
assets:
|
|
16
|
+
alluvial:
|
|
17
|
+
status: stable
|
|
18
|
+
framework: angular
|
|
19
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#alluvialsankey-diagrams
|
|
20
|
+
demoLinks:
|
|
21
|
+
- type: storybook
|
|
22
|
+
name: Storybook
|
|
23
|
+
action: link
|
|
24
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/complex-charts-alluvial
|
|
25
|
+
area-simple:
|
|
26
|
+
status: stable
|
|
27
|
+
framework: angular
|
|
28
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#area-(simple)
|
|
29
|
+
demoLinks:
|
|
30
|
+
- type: storybook
|
|
31
|
+
name: Storybook
|
|
32
|
+
action: link
|
|
33
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-area-simple
|
|
34
|
+
area-stacked:
|
|
35
|
+
status: stable
|
|
36
|
+
framework: angular
|
|
37
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#area-(stacked)
|
|
38
|
+
demoLinks:
|
|
39
|
+
- type: storybook
|
|
40
|
+
name: Storybook
|
|
41
|
+
action: link
|
|
42
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-area-stacked
|
|
43
|
+
bar-floating:
|
|
44
|
+
status: stable
|
|
45
|
+
framework: angular
|
|
46
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#bar-(floating)
|
|
47
|
+
demoLinks:
|
|
48
|
+
- type: storybook
|
|
49
|
+
name: Storybook
|
|
50
|
+
action: link
|
|
51
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bar-floating
|
|
52
|
+
bar-grouped:
|
|
53
|
+
status: stable
|
|
54
|
+
framework: angular
|
|
55
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#bar-(grouped)
|
|
56
|
+
demoLinks:
|
|
57
|
+
- type: storybook
|
|
58
|
+
name: Storybook
|
|
59
|
+
action: link
|
|
60
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bar-grouped
|
|
61
|
+
bar-simple:
|
|
62
|
+
status: stable
|
|
63
|
+
framework: angular
|
|
64
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#bar-(simple)
|
|
65
|
+
demoLinks:
|
|
66
|
+
- type: storybook
|
|
67
|
+
name: Storybook
|
|
68
|
+
action: link
|
|
69
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bar-simple
|
|
70
|
+
bar-stacked:
|
|
71
|
+
status: stable
|
|
72
|
+
framework: angular
|
|
73
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#bar-(stacked)
|
|
74
|
+
demoLinks:
|
|
75
|
+
- type: storybook
|
|
76
|
+
name: Storybook
|
|
77
|
+
action: link
|
|
78
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bar-stacked
|
|
79
|
+
boxplot:
|
|
80
|
+
status: stable
|
|
81
|
+
framework: angular
|
|
82
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#boxplot
|
|
83
|
+
demoLinks:
|
|
84
|
+
- type: storybook
|
|
85
|
+
name: Storybook
|
|
86
|
+
action: link
|
|
87
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-boxplot
|
|
88
|
+
bubble:
|
|
89
|
+
status: stable
|
|
90
|
+
framework: angular
|
|
91
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#bubble
|
|
92
|
+
demoLinks:
|
|
93
|
+
- type: storybook
|
|
94
|
+
name: Storybook
|
|
95
|
+
action: link
|
|
96
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bubble
|
|
97
|
+
bullet:
|
|
98
|
+
status: stable
|
|
99
|
+
framework: angular
|
|
100
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#bullet
|
|
101
|
+
demoLinks:
|
|
102
|
+
- type: storybook
|
|
103
|
+
name: Storybook
|
|
104
|
+
action: link
|
|
105
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bullet
|
|
106
|
+
circle-pack:
|
|
107
|
+
status: stable
|
|
108
|
+
framework: angular
|
|
109
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#circle-packs
|
|
110
|
+
demoLinks:
|
|
111
|
+
- type: storybook
|
|
112
|
+
name: Storybook
|
|
113
|
+
action: link
|
|
114
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/complex-charts-circle-pack
|
|
115
|
+
combo:
|
|
116
|
+
status: stable
|
|
117
|
+
framework: angular
|
|
118
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/getting-started
|
|
119
|
+
demoLinks:
|
|
120
|
+
- type: storybook
|
|
121
|
+
name: Storybook
|
|
122
|
+
action: link
|
|
123
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-combo
|
|
124
|
+
donut:
|
|
125
|
+
status: stable
|
|
126
|
+
framework: angular
|
|
127
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#donut
|
|
128
|
+
demoLinks:
|
|
129
|
+
- type: storybook
|
|
130
|
+
name: Storybook
|
|
131
|
+
action: link
|
|
132
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-donut
|
|
133
|
+
gauge:
|
|
134
|
+
status: stable
|
|
135
|
+
framework: angular
|
|
136
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#gauge
|
|
137
|
+
demoLinks:
|
|
138
|
+
- type: storybook
|
|
139
|
+
name: Storybook
|
|
140
|
+
action: link
|
|
141
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-gauge
|
|
142
|
+
heatmap:
|
|
143
|
+
status: stable
|
|
144
|
+
framework: angular
|
|
145
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#heat-maps
|
|
146
|
+
demoLinks:
|
|
147
|
+
- type: storybook
|
|
148
|
+
name: Storybook
|
|
149
|
+
action: link
|
|
150
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/complex-charts-heatmap
|
|
151
|
+
histogram:
|
|
152
|
+
status: stable
|
|
153
|
+
framework: angular
|
|
154
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#histogram
|
|
155
|
+
demoLinks:
|
|
156
|
+
- type: storybook
|
|
157
|
+
name: Storybook
|
|
158
|
+
action: link
|
|
159
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-histogram
|
|
160
|
+
line:
|
|
161
|
+
status: stable
|
|
162
|
+
framework: angular
|
|
163
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#line
|
|
164
|
+
demoLinks:
|
|
165
|
+
- type: storybook
|
|
166
|
+
name: Storybook
|
|
167
|
+
action: link
|
|
168
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-line
|
|
169
|
+
lollipop:
|
|
170
|
+
status: stable
|
|
171
|
+
framework: angular
|
|
172
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#lollipop
|
|
173
|
+
demoLinks:
|
|
174
|
+
- type: storybook
|
|
175
|
+
name: Storybook
|
|
176
|
+
action: link
|
|
177
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-lollipop
|
|
178
|
+
meter:
|
|
179
|
+
status: stable
|
|
180
|
+
framework: angular
|
|
181
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#meter
|
|
182
|
+
demoLinks:
|
|
183
|
+
- type: storybook
|
|
184
|
+
name: Storybook
|
|
185
|
+
action: link
|
|
186
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-meter
|
|
187
|
+
meter-proportional:
|
|
188
|
+
status: stable
|
|
189
|
+
framework: angular
|
|
190
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#meter
|
|
191
|
+
demoLinks:
|
|
192
|
+
- type: storybook
|
|
193
|
+
name: Storybook
|
|
194
|
+
action: link
|
|
195
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-meter-proportional
|
|
196
|
+
network-diagram:
|
|
197
|
+
status: stable
|
|
198
|
+
framework: angular
|
|
199
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#network-diagrams
|
|
200
|
+
demoLinks:
|
|
201
|
+
- type: storybook
|
|
202
|
+
name: Storybook
|
|
203
|
+
action: link
|
|
204
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/diagrams
|
|
205
|
+
pie:
|
|
206
|
+
status: stable
|
|
207
|
+
framework: angular
|
|
208
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#pie
|
|
209
|
+
demoLinks:
|
|
210
|
+
- type: storybook
|
|
211
|
+
name: Storybook
|
|
212
|
+
action: link
|
|
213
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-pie
|
|
214
|
+
radar:
|
|
215
|
+
status: stable
|
|
216
|
+
framework: angular
|
|
217
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#radar
|
|
218
|
+
demoLinks:
|
|
219
|
+
- type: storybook
|
|
220
|
+
name: Storybook
|
|
221
|
+
action: link
|
|
222
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-radar
|
|
223
|
+
scatter:
|
|
224
|
+
name: Scatter
|
|
225
|
+
status: stable
|
|
226
|
+
framework: angular
|
|
227
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#scatter
|
|
228
|
+
demoLinks:
|
|
229
|
+
- type: storybook
|
|
230
|
+
name: Storybook
|
|
231
|
+
action: link
|
|
232
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-scatter
|
|
233
|
+
sparkline:
|
|
234
|
+
status: stable
|
|
235
|
+
framework: angular
|
|
236
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/getting-started
|
|
237
|
+
demoLinks:
|
|
238
|
+
- type: storybook
|
|
239
|
+
name: Storybook
|
|
240
|
+
action: link
|
|
241
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-sparkline
|
|
242
|
+
step:
|
|
243
|
+
status: stable
|
|
244
|
+
framework: angular
|
|
245
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/getting-started
|
|
246
|
+
demoLinks:
|
|
247
|
+
- type: storybook
|
|
248
|
+
name: Storybook
|
|
249
|
+
action: link
|
|
250
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-step
|
|
251
|
+
tree:
|
|
252
|
+
status: stable
|
|
253
|
+
framework: angular
|
|
254
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#tree-diagrams
|
|
255
|
+
demoLinks:
|
|
256
|
+
- type: storybook
|
|
257
|
+
name: Storybook
|
|
258
|
+
action: link
|
|
259
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/complex-charts-tree
|
|
260
|
+
treemap:
|
|
261
|
+
status: stable
|
|
262
|
+
framework: angular
|
|
263
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#tree-maps
|
|
264
|
+
demoLinks:
|
|
265
|
+
- type: storybook
|
|
266
|
+
name: Storybook
|
|
267
|
+
action: link
|
|
268
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/complex-charts-treemap
|
|
269
|
+
word-cloud:
|
|
270
|
+
status: stable
|
|
271
|
+
framework: angular
|
|
272
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#word-cloud
|
|
273
|
+
demoLinks:
|
|
274
|
+
- type: storybook
|
|
275
|
+
name: Storybook
|
|
276
|
+
action: link
|
|
277
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-word-cloud
|
package/ng-package.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
|
|
3
|
+
"dest": "./dist",
|
|
4
|
+
"lib": {
|
|
5
|
+
"entryFile": "src/index.ts"
|
|
6
|
+
},
|
|
7
|
+
"allowedNonPeerDependencies": [
|
|
8
|
+
"@angular/common",
|
|
9
|
+
"@angular/core",
|
|
10
|
+
"@carbon/charts",
|
|
11
|
+
"@carbon/icons-angular",
|
|
12
|
+
"@carbon/telemetry"
|
|
13
|
+
]
|
|
14
|
+
}
|