@carbon/charts-angular 0.58.1 → 0.59.0-beta.0
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/.storybook/addons.js +2 -0
- package/.storybook/assets/logo.svg +1 -0
- package/.storybook/assets/share.png +0 -0
- package/.storybook/assets/welcome.png +0 -0
- package/.storybook/config.js +22 -0
- package/.storybook/manager-head.html +45 -0
- package/.storybook/preview-head.html +10 -0
- package/.storybook/tsconfig.json +10 -0
- package/angular.json +68 -0
- package/build.sh +13 -0
- package/carbon.yml +275 -0
- package/dist/CHANGELOG.md +3168 -0
- package/dist/README.md +40 -0
- package/{alluvial-chart.component.d.ts → dist/alluvial-chart.component.d.ts} +0 -0
- package/{area-chart-stacked.component.d.ts → dist/area-chart-stacked.component.d.ts} +0 -0
- package/{area-chart.component.d.ts → dist/area-chart.component.d.ts} +0 -0
- package/{bar-chart-grouped.component.d.ts → dist/bar-chart-grouped.component.d.ts} +0 -0
- package/{bar-chart-simple.component.d.ts → dist/bar-chart-simple.component.d.ts} +0 -0
- package/{bar-chart-stacked.component.d.ts → dist/bar-chart-stacked.component.d.ts} +0 -0
- package/{base-chart.component.d.ts → dist/base-chart.component.d.ts} +0 -0
- package/{boxplot-chart.component.d.ts → dist/boxplot-chart.component.d.ts} +0 -0
- package/{bubble-chart.component.d.ts → dist/bubble-chart.component.d.ts} +0 -0
- package/{bullet-chart.component.d.ts → dist/bullet-chart.component.d.ts} +0 -0
- package/{bundles → dist/bundles}/carbon-charts-angular.umd.js +21 -23
- package/dist/bundles/carbon-charts-angular.umd.js.map +1 -0
- package/dist/bundles/carbon-charts-angular.umd.min.js +16 -0
- package/dist/bundles/carbon-charts-angular.umd.min.js.map +1 -0
- package/{carbon-charts-angular.d.ts → dist/carbon-charts-angular.d.ts} +0 -0
- package/{carbon-charts-angular.metadata.json → dist/carbon-charts-angular.metadata.json} +1 -1
- package/{charts.module.d.ts → dist/charts.module.d.ts} +0 -0
- package/{circle-pack-chart.component.d.ts → dist/circle-pack-chart.component.d.ts} +0 -0
- package/{combo-chart.component.d.ts → dist/combo-chart.component.d.ts} +0 -0
- package/{diagrams → dist/diagrams}/card-node/card-node-column.component.d.ts +0 -0
- package/{diagrams → dist/diagrams}/card-node/card-node-label.component.d.ts +0 -0
- package/{diagrams → dist/diagrams}/card-node/card-node-subtitle.component.d.ts +0 -0
- package/{diagrams → dist/diagrams}/card-node/card-node-title.component.d.ts +0 -0
- package/{diagrams → dist/diagrams}/card-node/card-node.component.d.ts +0 -0
- package/{diagrams → dist/diagrams}/card-node/card-node.module.d.ts +0 -0
- package/dist/diagrams/configs.d.ts +1 -0
- package/{diagrams → dist/diagrams}/edge/edge.component.d.ts +0 -0
- package/{diagrams → dist/diagrams}/edge/edge.module.d.ts +0 -0
- package/{diagrams → dist/diagrams}/marker/marker.component.d.ts +0 -0
- package/{diagrams → dist/diagrams}/marker/marker.module.d.ts +0 -0
- package/{diagrams → dist/diagrams}/shape-node/shape-node.component.d.ts +0 -0
- package/{diagrams → dist/diagrams}/shape-node/shape-node.module.d.ts +0 -0
- package/{donut-chart.component.d.ts → dist/donut-chart.component.d.ts} +0 -0
- package/{esm2015 → dist/esm2015}/alluvial-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/area-chart-stacked.component.js +0 -0
- package/{esm2015 → dist/esm2015}/area-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/bar-chart-grouped.component.js +0 -0
- package/{esm2015 → dist/esm2015}/bar-chart-simple.component.js +0 -0
- package/{esm2015 → dist/esm2015}/bar-chart-stacked.component.js +0 -0
- package/{esm2015 → dist/esm2015}/base-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/boxplot-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/bubble-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/bullet-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/carbon-charts-angular.js +0 -0
- package/{esm2015 → dist/esm2015}/charts.module.js +0 -0
- package/{esm2015 → dist/esm2015}/circle-pack-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/combo-chart.component.js +0 -0
- package/dist/esm2015/diagrams/card-node/card-node-column.component.js +41 -0
- package/dist/esm2015/diagrams/card-node/card-node-label.component.js +27 -0
- package/dist/esm2015/diagrams/card-node/card-node-subtitle.component.js +27 -0
- package/dist/esm2015/diagrams/card-node/card-node-title.component.js +27 -0
- package/dist/esm2015/diagrams/card-node/card-node.component.js +148 -0
- package/{esm2015 → dist/esm2015}/diagrams/card-node/card-node.module.js +0 -0
- package/dist/esm2015/diagrams/configs.js +8 -0
- package/dist/esm2015/diagrams/edge/edge.component.js +80 -0
- package/{esm2015 → dist/esm2015}/diagrams/edge/edge.module.js +0 -0
- package/dist/esm2015/diagrams/marker/marker.component.js +141 -0
- package/{esm2015 → dist/esm2015}/diagrams/marker/marker.module.js +0 -0
- package/dist/esm2015/diagrams/shape-node/shape-node.component.js +187 -0
- package/{esm2015 → dist/esm2015}/diagrams/shape-node/shape-node.module.js +0 -0
- package/{esm2015 → dist/esm2015}/donut-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/gauge-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/heatmap-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/histogram-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/index.js +0 -0
- package/{esm2015 → dist/esm2015}/line-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/lollipop-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/meter-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/pie-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/radar-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/scatter-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/tree-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/treemap-chart.component.js +0 -0
- package/{esm2015 → dist/esm2015}/wordcloud-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/alluvial-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/area-chart-stacked.component.js +0 -0
- package/{esm5 → dist/esm5}/area-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/bar-chart-grouped.component.js +0 -0
- package/{esm5 → dist/esm5}/bar-chart-simple.component.js +0 -0
- package/{esm5 → dist/esm5}/bar-chart-stacked.component.js +0 -0
- package/{esm5 → dist/esm5}/base-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/boxplot-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/bubble-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/bullet-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/carbon-charts-angular.js +0 -0
- package/{esm5 → dist/esm5}/charts.module.js +0 -0
- package/{esm5 → dist/esm5}/circle-pack-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/combo-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/diagrams/card-node/card-node-column.component.js +4 -5
- package/{esm5 → dist/esm5}/diagrams/card-node/card-node-label.component.js +3 -4
- package/{esm5 → dist/esm5}/diagrams/card-node/card-node-subtitle.component.js +3 -4
- package/{esm5 → dist/esm5}/diagrams/card-node/card-node-title.component.js +3 -4
- package/dist/esm5/diagrams/card-node/card-node.component.js +86 -0
- package/{esm5 → dist/esm5}/diagrams/card-node/card-node.module.js +0 -0
- package/dist/esm5/diagrams/configs.js +8 -0
- package/dist/esm5/diagrams/edge/edge.component.js +64 -0
- package/{esm5 → dist/esm5}/diagrams/edge/edge.module.js +0 -0
- package/{esm5 → dist/esm5}/diagrams/marker/marker.component.js +3 -4
- package/{esm5 → dist/esm5}/diagrams/marker/marker.module.js +0 -0
- package/dist/esm5/diagrams/shape-node/shape-node.component.js +104 -0
- package/{esm5 → dist/esm5}/diagrams/shape-node/shape-node.module.js +0 -0
- package/{esm5 → dist/esm5}/donut-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/gauge-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/heatmap-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/histogram-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/index.js +0 -0
- package/{esm5 → dist/esm5}/line-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/lollipop-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/meter-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/pie-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/radar-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/scatter-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/tree-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/treemap-chart.component.js +0 -0
- package/{esm5 → dist/esm5}/wordcloud-chart.component.js +0 -0
- package/{fesm2015 → dist/fesm2015}/carbon-charts-angular.js +17 -18
- package/dist/fesm2015/carbon-charts-angular.js.map +1 -0
- package/{fesm5 → dist/fesm5}/carbon-charts-angular.js +17 -18
- package/dist/fesm5/carbon-charts-angular.js.map +1 -0
- package/{gauge-chart.component.d.ts → dist/gauge-chart.component.d.ts} +0 -0
- package/{heatmap-chart.component.d.ts → dist/heatmap-chart.component.d.ts} +0 -0
- package/{histogram-chart.component.d.ts → dist/histogram-chart.component.d.ts} +0 -0
- package/{index.d.ts → dist/index.d.ts} +0 -0
- package/{line-chart.component.d.ts → dist/line-chart.component.d.ts} +0 -0
- package/{lollipop-chart.component.d.ts → dist/lollipop-chart.component.d.ts} +0 -0
- package/{meter-chart.component.d.ts → dist/meter-chart.component.d.ts} +0 -0
- package/dist/package.json +109 -0
- package/{pie-chart.component.d.ts → dist/pie-chart.component.d.ts} +0 -0
- package/{radar-chart.component.d.ts → dist/radar-chart.component.d.ts} +0 -0
- package/{scatter-chart.component.d.ts → dist/scatter-chart.component.d.ts} +0 -0
- package/{tree-chart.component.d.ts → dist/tree-chart.component.d.ts} +0 -0
- package/{treemap-chart.component.d.ts → dist/treemap-chart.component.d.ts} +0 -0
- package/{wordcloud-chart.component.d.ts → dist/wordcloud-chart.component.d.ts} +0 -0
- package/ng-package.json +8 -0
- package/package.json +103 -108
- package/src/alluvial-chart.component.ts +34 -0
- package/src/area-chart-stacked.component.ts +34 -0
- package/src/area-chart.component.ts +37 -0
- package/src/bar-chart-grouped.component.ts +34 -0
- package/src/bar-chart-simple.component.ts +34 -0
- package/src/bar-chart-stacked.component.ts +34 -0
- package/src/base-chart.component.ts +102 -0
- package/src/boxplot-chart.component.ts +34 -0
- package/src/bubble-chart.component.ts +34 -0
- package/src/bullet-chart.component.ts +34 -0
- package/src/charts.module.ts +87 -0
- package/src/circle-pack-chart.component.ts +34 -0
- package/src/combo-chart.component.ts +33 -0
- package/src/diagrams/card-node/card-node-column.component.ts +22 -0
- package/src/diagrams/card-node/card-node-label.component.ts +15 -0
- package/src/diagrams/card-node/card-node-subtitle.component.ts +15 -0
- package/src/diagrams/card-node/card-node-title.component.ts +15 -0
- package/src/diagrams/card-node/card-node.component.ts +100 -0
- package/src/diagrams/card-node/card-node.module.ts +18 -0
- package/src/diagrams/configs.ts +1 -0
- package/src/diagrams/edge/edge.component.ts +45 -0
- package/src/diagrams/edge/edge.module.ts +11 -0
- package/src/diagrams/marker/marker.component.ts +68 -0
- package/src/diagrams/marker/marker.module.ts +43 -0
- package/src/diagrams/shape-node/shape-node.component.ts +133 -0
- package/src/diagrams/shape-node/shape-node.module.ts +11 -0
- package/src/donut-chart.component.ts +34 -0
- package/src/gauge-chart.component.ts +34 -0
- package/src/heatmap-chart.component.ts +34 -0
- package/src/histogram-chart.component.ts +34 -0
- package/src/index.ts +44 -0
- package/src/line-chart.component.ts +34 -0
- package/src/lollipop-chart.component.ts +34 -0
- package/src/meter-chart.component.ts +33 -0
- package/src/pie-chart.component.ts +34 -0
- package/src/radar-chart.component.ts +34 -0
- package/src/scatter-chart.component.ts +34 -0
- package/src/tree-chart.component.ts +34 -0
- package/src/treemap-chart.component.ts +34 -0
- package/src/wordcloud-chart.component.ts +34 -0
- package/stories/all.stories.ts +99 -0
- package/stories/diagrams/0_diagram.stories.ts +224 -0
- package/stories/diagrams/card-node.stories.ts +181 -0
- package/stories/diagrams/edge.stories.ts +127 -0
- package/stories/diagrams/marker.stories.ts +140 -0
- package/stories/diagrams/shape-node.stories.ts +98 -0
- package/tsconfig.json +30 -0
- package/tslint.json +95 -0
- package/LICENSE.md +0 -201
- package/bundles/carbon-charts-angular.umd.js.map +0 -1
- package/bundles/carbon-charts-angular.umd.min.js +0 -17
- package/bundles/carbon-charts-angular.umd.min.js.map +0 -1
- package/esm2015/diagrams/card-node/card-node-column.component.js +0 -42
- package/esm2015/diagrams/card-node/card-node-label.component.js +0 -28
- package/esm2015/diagrams/card-node/card-node-subtitle.component.js +0 -28
- package/esm2015/diagrams/card-node/card-node-title.component.js +0 -28
- package/esm2015/diagrams/card-node/card-node.component.js +0 -149
- package/esm2015/diagrams/edge/edge.component.js +0 -81
- package/esm2015/diagrams/marker/marker.component.js +0 -142
- package/esm2015/diagrams/shape-node/shape-node.component.js +0 -188
- package/esm5/diagrams/card-node/card-node.component.js +0 -87
- package/esm5/diagrams/edge/edge.component.js +0 -65
- package/esm5/diagrams/shape-node/shape-node.component.js +0 -105
- package/fesm2015/carbon-charts-angular.js.map +0 -1
- package/fesm5/carbon-charts-angular.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="800" height="800"><defs><path id="a" d="M402.002 65H736v557.94H402.002z"/><path id="c" d="M65 295.764h106.706v247.479H65z"/></defs><g fill="none" fill-rule="evenodd"><path fill="#FF75B8" d="M251.796 197.647l-50.559-67.093c-54.285 40.138-96.035 96.261-118.296 161.416l80.408 24.584c16.993-48.006 48.15-89.316 88.447-118.907"/><path fill="#00B4FF" d="M400.5 651.997c-100.162 0-186.649-58.553-227.099-143.297l-74.88 38.153C152.885 658.814 267.679 735.997 400.5 735.997c98.515 0 187.111-42.46 248.489-110.078l-61.441-57.295c-46.038 51.185-112.784 83.373-187.048 83.373"/><path fill="#FF3A54" d="M398 149.017V65.022c-72.221.528-139.018 23.859-193.532 63.173l50.572 67.11c40.011-28.415 88.693-45.421 141.301-46.274l1.659-.014z"/><mask id="b" fill="#fff"><use xlink:href="#a"/></mask><path fill="#9639FF" d="M652 400.497c0 63.196-23.309 120.949-61.799 165.129l61.46 57.314C704.138 563.732 736 485.836 736 400.497 736 215.706 586.603 65.81 402.002 65v84.001C540.211 149.81 652 262.098 652 400.497" mask="url(#b)"/><mask id="d" fill="#fff"><use xlink:href="#c"/></mask><path fill="#007F7A" d="M149 400.497c0-28.027 4.584-54.983 13.044-80.159l-80.373-24.574C70.852 328.718 65 363.924 65 400.497c0 51.047 11.401 99.432 31.795 142.746l74.911-38.17C157.126 473.227 149 437.811 149 400.497" mask="url(#d)"/></g></svg>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { configure } from '@storybook/angular';
|
|
2
|
+
import { setOptions } from '@storybook/addon-options';
|
|
3
|
+
|
|
4
|
+
setOptions({
|
|
5
|
+
name: 'Carbon Charts - Angular',
|
|
6
|
+
showAddonPanel: true,
|
|
7
|
+
sortStoriesByKind: true,
|
|
8
|
+
panelPosition: 'bottom',
|
|
9
|
+
showDownPanel: true,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
// load global styles
|
|
13
|
+
require('!style-loader!css-loader!@carbon/charts/demo/styles.css');
|
|
14
|
+
|
|
15
|
+
const req = require.context('../stories', true, /.stories.ts$/);
|
|
16
|
+
function loadStories() {
|
|
17
|
+
req.keys().forEach((filename) => {
|
|
18
|
+
req(filename);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
configure(loadStories, module);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<meta
|
|
2
|
+
name="keywords"
|
|
3
|
+
content="IBM, design, system, Carbon, design system, data visualization, charts, Bluemix, styleguide, style, guide, components, library, pattern, kit, component, cloud, angular"
|
|
4
|
+
/>
|
|
5
|
+
|
|
6
|
+
<meta
|
|
7
|
+
name="description"
|
|
8
|
+
content="This is the core Angular version of Carbon Charts, an implementation of Carbon Design System's data-visualization patterns."
|
|
9
|
+
/>
|
|
10
|
+
|
|
11
|
+
<!-- Open Graph -->
|
|
12
|
+
<meta property="og:title" content="Carbon Charts - Angular" />
|
|
13
|
+
<meta property="og:site_name" content="Carbon Charts" />
|
|
14
|
+
<meta
|
|
15
|
+
property="og:description"
|
|
16
|
+
content="This is the Angular version of Carbon Charts, an implementation of Carbon Design System's data-visualization patterns."
|
|
17
|
+
/>
|
|
18
|
+
<meta
|
|
19
|
+
property="og:image"
|
|
20
|
+
content="https://charts.carbondesignsystem.com/angular/share.png"
|
|
21
|
+
/>
|
|
22
|
+
<meta
|
|
23
|
+
property="og:url"
|
|
24
|
+
content="http://charts.carbondesignsystem.com/angular"
|
|
25
|
+
/>
|
|
26
|
+
|
|
27
|
+
<!-- Favicon -->
|
|
28
|
+
<link rel="icon" href="logo.svg" />
|
|
29
|
+
|
|
30
|
+
<!-- Social -->
|
|
31
|
+
<meta name="twitter:card" content="summary_large_image" />
|
|
32
|
+
<meta name="twitter:image:alt" content="Carbon Charts - Angular" />
|
|
33
|
+
<meta
|
|
34
|
+
name="twitter:image"
|
|
35
|
+
content="https://charts.carbondesignsystem.com/angular/share.png"
|
|
36
|
+
/>
|
|
37
|
+
<meta name="twitter:site" content="@_carbondesign" />
|
|
38
|
+
|
|
39
|
+
<!-- Storybook override -->
|
|
40
|
+
<script>
|
|
41
|
+
setTimeout(function () {
|
|
42
|
+
document.querySelector('div.sidebar-header > div > a').innerHTML =
|
|
43
|
+
'Carbon Charts - Angular';
|
|
44
|
+
}, 1000);
|
|
45
|
+
</script>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<link
|
|
2
|
+
rel="preconnect"
|
|
3
|
+
crossorigin="anonymous"
|
|
4
|
+
href="https://fonts.gstatic.com"
|
|
5
|
+
/>
|
|
6
|
+
<link
|
|
7
|
+
href="https://fonts.googleapis.com/css?family=IBM+Plex+Sans+Condensed:300,400|IBM+Plex+Sans:400,600&display=swap"
|
|
8
|
+
rel="stylesheet"
|
|
9
|
+
crossorigin="anonymous"
|
|
10
|
+
/>
|
package/angular.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"projects": {
|
|
6
|
+
"charts-angular": {
|
|
7
|
+
"root": "",
|
|
8
|
+
"sourceRoot": "src",
|
|
9
|
+
"projectType": "library",
|
|
10
|
+
"prefix": "sc",
|
|
11
|
+
"architect": {
|
|
12
|
+
"build": {
|
|
13
|
+
"builder": "@angular-devkit/build-ng-packagr:build",
|
|
14
|
+
"options": {
|
|
15
|
+
"tsConfig": "./tsconfig.json",
|
|
16
|
+
"project": "./ng-package.json"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"test": {
|
|
20
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
21
|
+
"options": {
|
|
22
|
+
"main": "src/test.ts",
|
|
23
|
+
"karmaConfig": "./karma.conf.js",
|
|
24
|
+
"tsConfig": "./tsconfig.spec.json"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"lint": {
|
|
28
|
+
"builder": "@angular-devkit/build-angular:tslint",
|
|
29
|
+
"options": {
|
|
30
|
+
"tsConfig": ["./tsconfig.json", "./tsconfig.spec.json"],
|
|
31
|
+
"exclude": ["./node_modules", "../../node_modules"]
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"charts-angular-e2e": {
|
|
37
|
+
"root": "e2e",
|
|
38
|
+
"sourceRoot": "e2e",
|
|
39
|
+
"projectType": "application",
|
|
40
|
+
"architect": {
|
|
41
|
+
"e2e": {
|
|
42
|
+
"builder": "@angular-devkit/build-angular:protractor",
|
|
43
|
+
"options": {
|
|
44
|
+
"protractorConfig": "./protractor.conf.js",
|
|
45
|
+
"devServerTarget": "charts-angular:serve"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"lint": {
|
|
49
|
+
"builder": "@angular-devkit/build-angular:tslint",
|
|
50
|
+
"options": {
|
|
51
|
+
"tsConfig": ["e2e/tsconfig.e2e.json"],
|
|
52
|
+
"exclude": ["./node_modules", "../../node_modules"]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"defaultProject": "charts-angular",
|
|
59
|
+
"schematics": {
|
|
60
|
+
"@schematics/angular:component": {
|
|
61
|
+
"prefix": "ibm",
|
|
62
|
+
"styleext": "css"
|
|
63
|
+
},
|
|
64
|
+
"@schematics/angular:directive": {
|
|
65
|
+
"prefix": "ibm"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
package/build.sh
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
set -e
|
|
4
|
+
|
|
5
|
+
rm -rf dist
|
|
6
|
+
|
|
7
|
+
echo "linking local packages (non-lerna)"
|
|
8
|
+
# we run this outside of lerna, since lerna seems to have issues with correctly linking to the dist
|
|
9
|
+
rm -f node_modules/@carbon/charts
|
|
10
|
+
ln -sf $(pwd)/../core/dist node_modules/@carbon/charts
|
|
11
|
+
|
|
12
|
+
echo "compile with angular cli"
|
|
13
|
+
ng build
|
package/carbon.yml
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
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: Angular implementation of Carbon Charts
|
|
6
|
+
inherits: carbon-charts
|
|
7
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/getting-started
|
|
8
|
+
demoLinks:
|
|
9
|
+
- type: storybook
|
|
10
|
+
name: Storybook
|
|
11
|
+
action: link
|
|
12
|
+
url: https://charts.carbondesignsystem.com/angular
|
|
13
|
+
assets:
|
|
14
|
+
alluvial:
|
|
15
|
+
status: stable
|
|
16
|
+
framework: angular
|
|
17
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#alluvialsankey-diagrams
|
|
18
|
+
demoLinks:
|
|
19
|
+
- type: storybook
|
|
20
|
+
name: Storybook
|
|
21
|
+
action: link
|
|
22
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/complex-charts-alluvial
|
|
23
|
+
area-simple:
|
|
24
|
+
status: stable
|
|
25
|
+
framework: angular
|
|
26
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#area-(simple)
|
|
27
|
+
demoLinks:
|
|
28
|
+
- type: storybook
|
|
29
|
+
name: Storybook
|
|
30
|
+
action: link
|
|
31
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-area-simple
|
|
32
|
+
area-stacked:
|
|
33
|
+
status: stable
|
|
34
|
+
framework: angular
|
|
35
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#area-(stacked)
|
|
36
|
+
demoLinks:
|
|
37
|
+
- type: storybook
|
|
38
|
+
name: Storybook
|
|
39
|
+
action: link
|
|
40
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-area-stacked
|
|
41
|
+
bar-floating:
|
|
42
|
+
status: stable
|
|
43
|
+
framework: angular
|
|
44
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#bar-(floating)
|
|
45
|
+
demoLinks:
|
|
46
|
+
- type: storybook
|
|
47
|
+
name: Storybook
|
|
48
|
+
action: link
|
|
49
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bar-floating
|
|
50
|
+
bar-grouped:
|
|
51
|
+
status: stable
|
|
52
|
+
framework: angular
|
|
53
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#bar-(grouped)
|
|
54
|
+
demoLinks:
|
|
55
|
+
- type: storybook
|
|
56
|
+
name: Storybook
|
|
57
|
+
action: link
|
|
58
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bar-grouped
|
|
59
|
+
bar-simple:
|
|
60
|
+
status: stable
|
|
61
|
+
framework: angular
|
|
62
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#bar-(simple)
|
|
63
|
+
demoLinks:
|
|
64
|
+
- type: storybook
|
|
65
|
+
name: Storybook
|
|
66
|
+
action: link
|
|
67
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bar-simple
|
|
68
|
+
bar-stacked:
|
|
69
|
+
status: stable
|
|
70
|
+
framework: angular
|
|
71
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#bar-(stacked)
|
|
72
|
+
demoLinks:
|
|
73
|
+
- type: storybook
|
|
74
|
+
name: Storybook
|
|
75
|
+
action: link
|
|
76
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bar-stacked
|
|
77
|
+
boxplot:
|
|
78
|
+
status: stable
|
|
79
|
+
framework: angular
|
|
80
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#boxplot
|
|
81
|
+
demoLinks:
|
|
82
|
+
- type: storybook
|
|
83
|
+
name: Storybook
|
|
84
|
+
action: link
|
|
85
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-boxplot
|
|
86
|
+
bubble:
|
|
87
|
+
status: stable
|
|
88
|
+
framework: angular
|
|
89
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#bubble
|
|
90
|
+
demoLinks:
|
|
91
|
+
- type: storybook
|
|
92
|
+
name: Storybook
|
|
93
|
+
action: link
|
|
94
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bubble
|
|
95
|
+
bullet:
|
|
96
|
+
status: stable
|
|
97
|
+
framework: angular
|
|
98
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#bullet
|
|
99
|
+
demoLinks:
|
|
100
|
+
- type: storybook
|
|
101
|
+
name: Storybook
|
|
102
|
+
action: link
|
|
103
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bullet
|
|
104
|
+
circle-pack:
|
|
105
|
+
status: stable
|
|
106
|
+
framework: angular
|
|
107
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#circle-packs
|
|
108
|
+
demoLinks:
|
|
109
|
+
- type: storybook
|
|
110
|
+
name: Storybook
|
|
111
|
+
action: link
|
|
112
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/complex-charts-circle-pack
|
|
113
|
+
combo:
|
|
114
|
+
status: stable
|
|
115
|
+
framework: angular
|
|
116
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/getting-started
|
|
117
|
+
demoLinks:
|
|
118
|
+
- type: storybook
|
|
119
|
+
name: Storybook
|
|
120
|
+
action: link
|
|
121
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-combo
|
|
122
|
+
donut:
|
|
123
|
+
status: stable
|
|
124
|
+
framework: angular
|
|
125
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#donut
|
|
126
|
+
demoLinks:
|
|
127
|
+
- type: storybook
|
|
128
|
+
name: Storybook
|
|
129
|
+
action: link
|
|
130
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-donut
|
|
131
|
+
gauge:
|
|
132
|
+
status: stable
|
|
133
|
+
framework: angular
|
|
134
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#gauge
|
|
135
|
+
demoLinks:
|
|
136
|
+
- type: storybook
|
|
137
|
+
name: Storybook
|
|
138
|
+
action: link
|
|
139
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-gauge
|
|
140
|
+
heatmap:
|
|
141
|
+
status: stable
|
|
142
|
+
framework: angular
|
|
143
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#heat-maps
|
|
144
|
+
demoLinks:
|
|
145
|
+
- type: storybook
|
|
146
|
+
name: Storybook
|
|
147
|
+
action: link
|
|
148
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/complex-charts-heatmap
|
|
149
|
+
histogram:
|
|
150
|
+
status: stable
|
|
151
|
+
framework: angular
|
|
152
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#histogram
|
|
153
|
+
demoLinks:
|
|
154
|
+
- type: storybook
|
|
155
|
+
name: Storybook
|
|
156
|
+
action: link
|
|
157
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-histogram
|
|
158
|
+
line:
|
|
159
|
+
status: stable
|
|
160
|
+
framework: angular
|
|
161
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#line
|
|
162
|
+
demoLinks:
|
|
163
|
+
- type: storybook
|
|
164
|
+
name: Storybook
|
|
165
|
+
action: link
|
|
166
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-line
|
|
167
|
+
lollipop:
|
|
168
|
+
status: stable
|
|
169
|
+
framework: angular
|
|
170
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#lollipop
|
|
171
|
+
demoLinks:
|
|
172
|
+
- type: storybook
|
|
173
|
+
name: Storybook
|
|
174
|
+
action: link
|
|
175
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-lollipop
|
|
176
|
+
meter:
|
|
177
|
+
status: stable
|
|
178
|
+
framework: angular
|
|
179
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#meter
|
|
180
|
+
demoLinks:
|
|
181
|
+
- type: storybook
|
|
182
|
+
name: Storybook
|
|
183
|
+
action: link
|
|
184
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-meter
|
|
185
|
+
meter-proportional:
|
|
186
|
+
status: stable
|
|
187
|
+
framework: angular
|
|
188
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#meter
|
|
189
|
+
demoLinks:
|
|
190
|
+
- type: storybook
|
|
191
|
+
name: Storybook
|
|
192
|
+
action: link
|
|
193
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-meter-proportional
|
|
194
|
+
network-diagram:
|
|
195
|
+
status: stable
|
|
196
|
+
framework: angular
|
|
197
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#network-diagrams
|
|
198
|
+
demoLinks:
|
|
199
|
+
- type: storybook
|
|
200
|
+
name: Storybook
|
|
201
|
+
action: link
|
|
202
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/diagrams
|
|
203
|
+
pie:
|
|
204
|
+
status: stable
|
|
205
|
+
framework: angular
|
|
206
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#pie
|
|
207
|
+
demoLinks:
|
|
208
|
+
- type: storybook
|
|
209
|
+
name: Storybook
|
|
210
|
+
action: link
|
|
211
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-pie
|
|
212
|
+
radar:
|
|
213
|
+
status: stable
|
|
214
|
+
framework: angular
|
|
215
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#radar
|
|
216
|
+
demoLinks:
|
|
217
|
+
- type: storybook
|
|
218
|
+
name: Storybook
|
|
219
|
+
action: link
|
|
220
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-radar
|
|
221
|
+
scatter:
|
|
222
|
+
name: Scatter
|
|
223
|
+
status: stable
|
|
224
|
+
framework: angular
|
|
225
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#scatter
|
|
226
|
+
demoLinks:
|
|
227
|
+
- type: storybook
|
|
228
|
+
name: Storybook
|
|
229
|
+
action: link
|
|
230
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-scatter
|
|
231
|
+
sparkline:
|
|
232
|
+
status: stable
|
|
233
|
+
framework: angular
|
|
234
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/getting-started
|
|
235
|
+
demoLinks:
|
|
236
|
+
- type: storybook
|
|
237
|
+
name: Storybook
|
|
238
|
+
action: link
|
|
239
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-sparkline
|
|
240
|
+
step:
|
|
241
|
+
status: stable
|
|
242
|
+
framework: angular
|
|
243
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/getting-started
|
|
244
|
+
demoLinks:
|
|
245
|
+
- type: storybook
|
|
246
|
+
name: Storybook
|
|
247
|
+
action: link
|
|
248
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-step
|
|
249
|
+
tree:
|
|
250
|
+
status: stable
|
|
251
|
+
framework: angular
|
|
252
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#tree-diagrams
|
|
253
|
+
demoLinks:
|
|
254
|
+
- type: storybook
|
|
255
|
+
name: Storybook
|
|
256
|
+
action: link
|
|
257
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/complex-charts-tree
|
|
258
|
+
treemap:
|
|
259
|
+
status: stable
|
|
260
|
+
framework: angular
|
|
261
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#tree-maps
|
|
262
|
+
demoLinks:
|
|
263
|
+
- type: storybook
|
|
264
|
+
name: Storybook
|
|
265
|
+
action: link
|
|
266
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/complex-charts-treemap
|
|
267
|
+
word-cloud:
|
|
268
|
+
status: stable
|
|
269
|
+
framework: angular
|
|
270
|
+
externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#word-cloud
|
|
271
|
+
demoLinks:
|
|
272
|
+
- type: storybook
|
|
273
|
+
name: Storybook
|
|
274
|
+
action: link
|
|
275
|
+
url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-word-cloud
|