@carbon/charts 1.2.1 → 1.3.2
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 +33 -0
- package/build/demo/data/bar.d.ts +46 -0
- package/build/demo/data/zoom-bar.d.ts +6 -0
- package/build/src/components/graphs/bar-grouped.d.ts +2 -0
- package/bundle.js +1 -1
- package/components/axes/axis.js +2 -0
- package/components/axes/axis.js.map +1 -1
- package/components/graphs/bar-grouped.d.ts +2 -0
- package/components/graphs/bar-grouped.js +28 -8
- package/components/graphs/bar-grouped.js.map +1 -1
- package/demo/data/bar.d.ts +46 -0
- package/demo/data/bar.js +111 -0
- package/demo/data/bar.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/index.js +20 -0
- package/demo/data/index.js.map +1 -1
- package/demo/data/zoom-bar.d.ts +6 -0
- package/demo/data/zoom-bar.js +2 -0
- package/demo/data/zoom-bar.js.map +1 -1
- package/demo/tsconfig.tsbuildinfo +5 -5
- package/package.json +1 -2
- package/services/essentials/dom-to-image.d.ts +120 -0
- package/services/essentials/dom-to-image.js +720 -0
- package/services/essentials/dom-to-image.js.map +1 -0
- package/services/essentials/dom-utils.js +1 -1
- package/services/essentials/dom-utils.js.map +1 -1
- package/tsconfig.tsbuildinfo +18 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,39 @@
|
|
|
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
|
+
## [1.3.2](https://github.com/carbon-design-system/carbon-charts/compare/v1.3.1...v1.3.2) (2022-06-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **core:** remove dom-to-image dependency & add script to project ([#1403](https://github.com/carbon-design-system/carbon-charts/issues/1403)) ([8dcd34b](https://github.com/carbon-design-system/carbon-charts/commit/8dcd34b00e804f666fa4a756f40d19233d516196)), closes [#1395](https://github.com/carbon-design-system/carbon-charts/issues/1395)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [1.3.1](https://github.com/carbon-design-system/carbon-charts/compare/v1.3.0...v1.3.1) (2022-06-28)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **core:** remove mock text from axes ([#1402](https://github.com/carbon-design-system/carbon-charts/issues/1402)) ([876d55c](https://github.com/carbon-design-system/carbon-charts/commit/876d55c19727b589d0fdb294b0e3f522328b5fd9))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [1.3.0](https://github.com/carbon-design-system/carbon-charts/compare/v1.2.1...v1.3.0) (2022-06-28)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* **core:** bar group time series ([#1398](https://github.com/carbon-design-system/carbon-charts/issues/1398)) ([6ff1bb1](https://github.com/carbon-design-system/carbon-charts/commit/6ff1bb19ec95f5cd5da34ce8639fa9c079461d5f)), closes [#1396](https://github.com/carbon-design-system/carbon-charts/issues/1396) [#1373](https://github.com/carbon-design-system/carbon-charts/issues/1373)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
6
39
|
## [1.2.1](https://github.com/carbon-design-system/carbon-charts/compare/v1.2.0...v1.2.1) (2022-06-14)
|
|
7
40
|
|
|
8
41
|
|
package/build/demo/data/bar.d.ts
CHANGED
|
@@ -3,6 +3,16 @@ export declare const groupedBarData: {
|
|
|
3
3
|
key: string;
|
|
4
4
|
value: number;
|
|
5
5
|
}[];
|
|
6
|
+
export declare const groupedBarTimeSeriesData: {
|
|
7
|
+
group: string;
|
|
8
|
+
date: Date;
|
|
9
|
+
value: number;
|
|
10
|
+
}[];
|
|
11
|
+
export declare const groupedBarTimeSeriesDenseData: {
|
|
12
|
+
group: string;
|
|
13
|
+
date: Date;
|
|
14
|
+
value: number;
|
|
15
|
+
}[];
|
|
6
16
|
export declare const groupedBarOptions: {
|
|
7
17
|
title: string;
|
|
8
18
|
axes: {
|
|
@@ -52,6 +62,42 @@ export declare const groupedHorizontalBarOptions: {
|
|
|
52
62
|
};
|
|
53
63
|
};
|
|
54
64
|
};
|
|
65
|
+
export declare const groupedBarTimeSeriesOptions: {
|
|
66
|
+
title: string;
|
|
67
|
+
axes: {
|
|
68
|
+
left: {
|
|
69
|
+
mapsTo: string;
|
|
70
|
+
};
|
|
71
|
+
bottom: {
|
|
72
|
+
mapsTo: string;
|
|
73
|
+
scaleType: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export declare const groupedBarHorizontalTimeSeriesOptions: {
|
|
78
|
+
title: string;
|
|
79
|
+
axes: {
|
|
80
|
+
left: {
|
|
81
|
+
mapsTo: string;
|
|
82
|
+
scaleType: string;
|
|
83
|
+
};
|
|
84
|
+
bottom: {
|
|
85
|
+
mapsTo: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export declare const groupedBarTimeSeriesDenseOptions: {
|
|
90
|
+
title: string;
|
|
91
|
+
axes: {
|
|
92
|
+
left: {
|
|
93
|
+
mapsTo: string;
|
|
94
|
+
};
|
|
95
|
+
bottom: {
|
|
96
|
+
mapsTo: string;
|
|
97
|
+
scaleType: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
55
101
|
export declare const simpleBarData: {
|
|
56
102
|
group: string;
|
|
57
103
|
value: number;
|
|
@@ -11,6 +11,12 @@ export declare const zoomBarSimpleBarTimeSeriesData: {
|
|
|
11
11
|
value: number;
|
|
12
12
|
}[];
|
|
13
13
|
export declare const zoomBarSimpleBarTimeSeriesOptions: any;
|
|
14
|
+
export declare const zoomBarGroupedBarTimeSeriesData: {
|
|
15
|
+
group: string;
|
|
16
|
+
date: Date;
|
|
17
|
+
value: number;
|
|
18
|
+
}[];
|
|
19
|
+
export declare const zoomBarGroupedBarTimeSeriesOptions: any;
|
|
14
20
|
export declare const zoomBarStackedBarTimeSeriesData: {
|
|
15
21
|
group: string;
|
|
16
22
|
date: Date;
|
|
@@ -6,6 +6,7 @@ export declare class GroupedBar extends Bar {
|
|
|
6
6
|
renderType: RenderTypes;
|
|
7
7
|
groupScale: ScaleBand<any>;
|
|
8
8
|
padding: number;
|
|
9
|
+
readonly defaultStepFactor = 70;
|
|
9
10
|
init(): void;
|
|
10
11
|
render(animate: boolean): void;
|
|
11
12
|
handleLegendOnHover: (event: CustomEvent<any>) => void;
|
|
@@ -14,6 +15,7 @@ export declare class GroupedBar extends Bar {
|
|
|
14
15
|
destroy(): void;
|
|
15
16
|
protected getDataCorrespondingToLabel(label: string): any;
|
|
16
17
|
protected getGroupWidth(): number;
|
|
18
|
+
protected getDomainScaleStep(): number;
|
|
17
19
|
protected getTotalGroupPadding(): number;
|
|
18
20
|
protected getBarWidth(): any;
|
|
19
21
|
protected setGroupScale(): void;
|