@carbon/charts 0.41.0 → 0.41.1
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/CHANGELOG.md +16 -20
- package/build/demo/data/index.d.ts +6 -0
- package/build/demo/data/treemap.d.ts +15 -0
- package/build/src/charts/index.d.ts +1 -0
- package/build/src/charts/treemap.d.ts +6 -0
- package/build/src/components/graphs/treemap.d.ts +9 -0
- package/build/src/components/index.d.ts +1 -0
- package/build/src/configuration.d.ts +2 -1
- package/build/src/interfaces/charts.d.ts +5 -0
- package/build/src/interfaces/events.d.ts +9 -0
- package/bundle.js +1 -1
- package/charts/index.d.ts +1 -0
- package/charts/index.js +1 -0
- package/charts/index.js.map +1 -1
- package/charts/treemap.d.ts +6 -0
- package/charts/treemap.js +41 -0
- package/charts/treemap.js.map +1 -0
- package/components/axes/two-dimensional-axes.js +4 -0
- package/components/axes/two-dimensional-axes.js.map +1 -1
- package/components/essentials/legend.js +2 -6
- package/components/essentials/legend.js.map +1 -1
- package/components/essentials/tooltip.js +7 -4
- package/components/essentials/tooltip.js.map +1 -1
- package/components/graphs/gauge.js.map +1 -1
- package/components/graphs/radar.js.map +1 -1
- package/components/graphs/treemap.d.ts +9 -0
- package/components/graphs/treemap.js +291 -0
- package/components/graphs/treemap.js.map +1 -0
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/index.js.map +1 -1
- package/configuration.d.ts +2 -1
- package/configuration.js +10 -1
- package/configuration.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/index.d.ts +6 -0
- package/demo/data/index.js +17 -0
- package/demo/data/index.js.map +1 -1
- package/demo/data/treemap.d.ts +15 -0
- package/demo/data/treemap.js +93 -0
- package/demo/data/treemap.js.map +1 -0
- package/demo/styles.css +19 -6
- package/demo/styles.css.map +1 -1
- package/demo/styles.min.css +1 -1
- package/demo/styles.min.css.map +1 -1
- package/demo/tsconfig.tsbuildinfo +21 -7
- package/interfaces/charts.d.ts +5 -0
- package/interfaces/charts.js.map +1 -1
- package/interfaces/events.d.ts +9 -0
- package/interfaces/events.js +10 -0
- package/interfaces/events.js.map +1 -1
- package/model-gauge.js.map +1 -1
- package/package.json +2 -2
- package/services/essentials/dom-utils.js +2 -1
- package/services/essentials/dom-utils.js.map +1 -1
- package/styles/graphs/_treemap.scss +7 -0
- package/styles/graphs/index.scss +1 -0
- package/styles-g10.css +4 -0
- package/styles-g10.css.map +1 -1
- package/styles-g10.min.css +1 -1
- package/styles-g10.min.css.map +1 -1
- package/styles-g100.css +4 -0
- package/styles-g100.css.map +1 -1
- package/styles-g100.min.css +1 -1
- package/styles-g100.min.css.map +1 -1
- package/styles-g90.css +4 -0
- package/styles-g90.css.map +1 -1
- package/styles-g90.min.css +1 -1
- package/styles-g90.min.css.map +1 -1
- package/styles.css +4 -0
- package/styles.css.map +1 -1
- package/styles.min.css +1 -1
- package/styles.min.css.map +1 -1
- package/tsconfig.tsbuildinfo +68 -20
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.41.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.0...v0.41.1) (2020-11-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **core:** correct axis title paddings in y-axes ([#873](https://github.com/carbon-design-system/carbon-charts/issues/873)) ([8a27a5f](https://github.com/carbon-design-system/carbon-charts/commit/8a27a5f65cbc55a878e603c9aa96c6f38d6ea10d)), closes [#859](https://github.com/carbon-design-system/carbon-charts/issues/859)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# Change Log
|
|
18
|
+
|
|
19
|
+
All notable changes to this project will be documented in this file. See
|
|
20
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
21
|
+
|
|
6
22
|
# [0.41.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.40.14...v0.41.0) (2020-11-10)
|
|
7
23
|
|
|
8
24
|
|
|
@@ -35,42 +51,22 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
35
51
|
|
|
36
52
|
**Note:** Version bump only for package @carbon/charts
|
|
37
53
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
54
|
## [0.40.12](https://github.com/carbon-design-system/carbon-charts/compare/v0.40.11...v0.40.12) (2020-11-06)
|
|
43
55
|
|
|
44
56
|
**Note:** Version bump only for package @carbon/charts
|
|
45
57
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
58
|
## [0.40.11](https://github.com/carbon-design-system/carbon-charts/compare/v0.40.10...v0.40.11) (2020-11-03)
|
|
51
59
|
|
|
52
60
|
**Note:** Version bump only for package @carbon/charts
|
|
53
61
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
62
|
## [0.40.10](https://github.com/carbon-design-system/carbon-charts/compare/v0.40.9...v0.40.10) (2020-11-03)
|
|
59
63
|
|
|
60
64
|
**Note:** Version bump only for package @carbon/charts
|
|
61
65
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
66
|
## [0.40.9](https://github.com/carbon-design-system/carbon-charts/compare/v0.40.8...v0.40.9) (2020-11-03)
|
|
67
67
|
|
|
68
68
|
**Note:** Version bump only for package @carbon/charts
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
70
|
# Change Log
|
|
75
71
|
|
|
76
72
|
All notable changes to this project will be documented in this file. See
|
|
@@ -9,6 +9,7 @@ export * from "./gauge";
|
|
|
9
9
|
export * from "./scatter";
|
|
10
10
|
export * from "./step";
|
|
11
11
|
export * from "./radar";
|
|
12
|
+
export * from "./treemap";
|
|
12
13
|
export declare const chartTypes: {
|
|
13
14
|
AreaChart: {
|
|
14
15
|
vanilla: string;
|
|
@@ -75,6 +76,11 @@ export declare const chartTypes: {
|
|
|
75
76
|
angular: string;
|
|
76
77
|
vue: string;
|
|
77
78
|
};
|
|
79
|
+
TreemapChart: {
|
|
80
|
+
vanilla: string;
|
|
81
|
+
angular: string;
|
|
82
|
+
vue: string;
|
|
83
|
+
};
|
|
78
84
|
};
|
|
79
85
|
export declare const storybookDemoGroups: any;
|
|
80
86
|
export declare const demoGroups: any;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const treemapData: {
|
|
2
|
+
name: string;
|
|
3
|
+
children: ({
|
|
4
|
+
name: string;
|
|
5
|
+
value: number;
|
|
6
|
+
showLabel: boolean;
|
|
7
|
+
} | {
|
|
8
|
+
name: string;
|
|
9
|
+
value: number;
|
|
10
|
+
showLabel?: undefined;
|
|
11
|
+
})[];
|
|
12
|
+
}[];
|
|
13
|
+
export declare const treemapOptions: {
|
|
14
|
+
title: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Component } from "../component";
|
|
2
|
+
export declare class Treemap extends Component {
|
|
3
|
+
type: string;
|
|
4
|
+
init(): void;
|
|
5
|
+
render(animate?: boolean): void;
|
|
6
|
+
addEventListeners(): void;
|
|
7
|
+
handleLegendOnHover: (event: CustomEvent<any>) => void;
|
|
8
|
+
handleLegendMouseOut: (event: CustomEvent<any>) => void;
|
|
9
|
+
}
|
|
@@ -19,6 +19,7 @@ export * from "./graphs/gauge";
|
|
|
19
19
|
export * from "./graphs/donut";
|
|
20
20
|
export * from "./graphs/skeleton";
|
|
21
21
|
export * from "./graphs/skeleton-lines";
|
|
22
|
+
export * from "./graphs/treemap";
|
|
22
23
|
export * from "./layout/spacer";
|
|
23
24
|
export * from "./layout/layout";
|
|
24
25
|
export * from "./axes/two-dimensional-axes";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, RadarChartOptions, GridOptions, RulerOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions } from "./interfaces";
|
|
1
|
+
import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, RadarChartOptions, TreemapChartOptions, GridOptions, RulerOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions } from "./interfaces";
|
|
2
2
|
/**
|
|
3
3
|
* Grid options
|
|
4
4
|
*/
|
|
@@ -28,5 +28,6 @@ export declare const options: {
|
|
|
28
28
|
meterChart: MeterChartOptions;
|
|
29
29
|
radarChart: RadarChartOptions;
|
|
30
30
|
gaugeChart: GaugeChartOptions;
|
|
31
|
+
treemapChart: TreemapChartOptions;
|
|
31
32
|
};
|
|
32
33
|
export * from "./configuration-non-customizable";
|
|
@@ -107,6 +107,15 @@ export declare enum Radar {
|
|
|
107
107
|
X_AXIS_CLICK = "radar-x-axis-click",
|
|
108
108
|
X_AXIS_MOUSEOUT = "radar-x-axis-mouseout"
|
|
109
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* enum of all treemap graph events
|
|
112
|
+
*/
|
|
113
|
+
export declare enum Treemap {
|
|
114
|
+
LEAF_MOUSEOVER = "leaf-mouseover",
|
|
115
|
+
LEAF_MOUSEMOVE = "leaf-mousemove",
|
|
116
|
+
LEAF_CLICK = "leaf-click",
|
|
117
|
+
LEAF_MOUSEOUT = "leaf-mouseout"
|
|
118
|
+
}
|
|
110
119
|
/**
|
|
111
120
|
* enum of all tooltip events
|
|
112
121
|
*/
|