@carbon/charts 0.38.6 → 0.39.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 +44 -62
- package/build/demo/data/zoom-bar.d.ts +11 -0
- package/build/src/components/graphs/bar.d.ts +1 -1
- package/build/src/interfaces/a11y.d.ts +2 -1
- package/build/src/interfaces/components.d.ts +8 -0
- package/bundle.js +1 -1
- package/components/axes/axis.js +11 -4
- package/components/axes/axis.js.map +1 -1
- package/components/axes/ruler.js.map +1 -1
- package/components/axes/zoom-bar.js +7 -0
- package/components/axes/zoom-bar.js.map +1 -1
- package/components/essentials/legend.js +17 -2
- package/components/essentials/legend.js.map +1 -1
- package/components/essentials/title-meter.js.map +1 -1
- package/components/essentials/tooltip-axis.js +2 -2
- package/components/essentials/tooltip-axis.js.map +1 -1
- package/components/essentials/tooltip.js.map +1 -1
- package/components/graphs/area.js +3 -1
- package/components/graphs/area.js.map +1 -1
- package/components/graphs/bar-grouped.js +1 -1
- package/components/graphs/bar-grouped.js.map +1 -1
- package/components/graphs/bar-stacked.js +1 -1
- package/components/graphs/bar-stacked.js.map +1 -1
- package/components/graphs/bar.d.ts +1 -1
- package/components/graphs/bar.js +3 -0
- package/components/graphs/bar.js.map +1 -1
- package/components/graphs/gauge.js.map +1 -1
- package/components/graphs/meter.js +6 -2
- package/components/graphs/meter.js.map +1 -1
- package/components/graphs/pie.js +3 -3
- package/components/graphs/pie.js.map +1 -1
- package/components/graphs/scatter-stacked.js +9 -6
- package/components/graphs/scatter-stacked.js.map +1 -1
- package/components/graphs/scatter.js +6 -3
- package/components/graphs/scatter.js.map +1 -1
- package/components/graphs/skeleton.js +1 -3
- package/components/graphs/skeleton.js.map +1 -1
- package/configuration.js +1 -1
- package/configuration.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/index.js +6 -0
- package/demo/data/index.js.map +1 -1
- package/demo/data/zoom-bar.d.ts +11 -0
- package/demo/data/zoom-bar.js +81 -0
- package/demo/data/zoom-bar.js.map +1 -1
- package/demo/tsconfig.tsbuildinfo +7 -7
- package/interfaces/a11y.d.ts +2 -1
- package/interfaces/a11y.js +1 -0
- package/interfaces/a11y.js.map +1 -1
- package/interfaces/components.d.ts +8 -0
- package/interfaces/components.js.map +1 -1
- package/model-meter.js +2 -1
- package/model-meter.js.map +1 -1
- package/model.js +31 -6
- package/model.js.map +1 -1
- package/package.json +1 -1
- package/services/essentials/gradient-utils.js +3 -3
- package/services/essentials/gradient-utils.js.map +1 -1
- package/services/scales-cartesian.js +3 -0
- package/services/scales-cartesian.js.map +1 -1
- package/services/zoom.js +2 -2
- package/services/zoom.js.map +1 -1
- package/tsconfig.tsbuildinfo +28 -28
package/CHANGELOG.md
CHANGED
|
@@ -3,37 +3,29 @@
|
|
|
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.
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @carbon/charts
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## [0.38.5](https://github.com/carbon-design-system/carbon-charts/compare/v0.38.4...v0.38.5) (2020-09-22)
|
|
6
|
+
## [0.39.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.39.0...v0.39.1) (2020-10-05)
|
|
15
7
|
|
|
16
8
|
|
|
17
9
|
### Bug Fixes
|
|
18
10
|
|
|
19
|
-
*
|
|
11
|
+
* **core:** fix division by zero & timescale issues ([#829](https://github.com/carbon-design-system/carbon-charts/issues/829)) ([ce9a2ab](https://github.com/carbon-design-system/carbon-charts/commit/ce9a2abdace0eef5ca6bdffa168992972d7f5848))
|
|
20
12
|
|
|
21
13
|
|
|
22
14
|
|
|
23
15
|
|
|
24
16
|
|
|
25
|
-
|
|
17
|
+
# [0.39.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.38.8...v0.39.0) (2020-10-01)
|
|
26
18
|
|
|
27
19
|
|
|
28
|
-
###
|
|
20
|
+
### Features
|
|
29
21
|
|
|
30
|
-
* **core:**
|
|
22
|
+
* **core:** allow custom labels for total & group in tooltips ([#826](https://github.com/carbon-design-system/carbon-charts/issues/826)) ([6946477](https://github.com/carbon-design-system/carbon-charts/commit/69464778ed4fdd2230cf5ca93162ec11b310e580))
|
|
31
23
|
|
|
32
24
|
|
|
33
25
|
|
|
34
26
|
|
|
35
27
|
|
|
36
|
-
## [0.38.
|
|
28
|
+
## [0.38.8](https://github.com/carbon-design-system/carbon-charts/compare/v0.38.7...v0.38.8) (2020-09-30)
|
|
37
29
|
|
|
38
30
|
**Note:** Version bump only for package @carbon/charts
|
|
39
31
|
|
|
@@ -41,7 +33,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
41
33
|
|
|
42
34
|
|
|
43
35
|
|
|
44
|
-
## [0.38.
|
|
36
|
+
## [0.38.7](https://github.com/carbon-design-system/carbon-charts/compare/v0.38.6...v0.38.7) (2020-09-23)
|
|
45
37
|
|
|
46
38
|
**Note:** Version bump only for package @carbon/charts
|
|
47
39
|
|
|
@@ -49,112 +41,102 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
49
41
|
|
|
50
42
|
|
|
51
43
|
|
|
52
|
-
|
|
44
|
+
# Change Log
|
|
53
45
|
|
|
54
|
-
|
|
46
|
+
All notable changes to this project will be documented in this file. See
|
|
47
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
55
48
|
|
|
49
|
+
## [0.38.6](https://github.com/carbon-design-system/carbon-charts/compare/v0.38.5...v0.38.6) (2020-09-22)
|
|
56
50
|
|
|
51
|
+
**Note:** Version bump only for package @carbon/charts
|
|
57
52
|
|
|
53
|
+
## [0.38.5](https://github.com/carbon-design-system/carbon-charts/compare/v0.38.4...v0.38.5) (2020-09-22)
|
|
58
54
|
|
|
55
|
+
### Bug Fixes
|
|
59
56
|
|
|
60
|
-
|
|
57
|
+
- do not dispatch zoom domain change event for all zoom bar behaviors
|
|
58
|
+
([#811](https://github.com/carbon-design-system/carbon-charts/issues/811))
|
|
59
|
+
([5fd692f](https://github.com/carbon-design-system/carbon-charts/commit/5fd692f9e71dbf4b3e9052feb6c99cb25156c5da))
|
|
61
60
|
|
|
61
|
+
## [0.38.4](https://github.com/carbon-design-system/carbon-charts/compare/v0.38.3...v0.38.4) (2020-09-21)
|
|
62
62
|
|
|
63
|
-
###
|
|
63
|
+
### Bug Fixes
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
- **core:** fix valueFormatter not being called on non-axis tooltips
|
|
66
|
+
([#809](https://github.com/carbon-design-system/carbon-charts/issues/809))
|
|
67
|
+
([b1ff24c](https://github.com/carbon-design-system/carbon-charts/commit/b1ff24c70c8291ef8dab5585866a12ef99fd6e6f))
|
|
66
68
|
|
|
69
|
+
## [0.38.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.38.2...v0.38.3) (2020-09-21)
|
|
67
70
|
|
|
71
|
+
**Note:** Version bump only for package @carbon/charts
|
|
68
72
|
|
|
73
|
+
## [0.38.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.38.1...v0.38.2) (2020-09-17)
|
|
69
74
|
|
|
75
|
+
**Note:** Version bump only for package @carbon/charts
|
|
70
76
|
|
|
71
|
-
## [0.
|
|
77
|
+
## [0.38.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.38.0...v0.38.1) (2020-09-17)
|
|
72
78
|
|
|
73
79
|
**Note:** Version bump only for package @carbon/charts
|
|
74
80
|
|
|
81
|
+
# [0.38.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.37.1...v0.38.0) (2020-09-15)
|
|
75
82
|
|
|
83
|
+
### Features
|
|
76
84
|
|
|
85
|
+
- **core:** enable or disable ruler
|
|
86
|
+
([#765](https://github.com/carbon-design-system/carbon-charts/issues/765))
|
|
87
|
+
([bef6daf](https://github.com/carbon-design-system/carbon-charts/commit/bef6daf53e2c7c825d39daa160e9f721ddec0b29))
|
|
77
88
|
|
|
89
|
+
## [0.37.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.37.0...v0.37.1) (2020-09-14)
|
|
78
90
|
|
|
79
|
-
|
|
91
|
+
**Note:** Version bump only for package @carbon/charts
|
|
80
92
|
|
|
93
|
+
# [0.37.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.36.4...v0.37.0) (2020-09-11)
|
|
81
94
|
|
|
82
95
|
### Features
|
|
83
96
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
97
|
+
- create options for tick rotation
|
|
98
|
+
([#770](https://github.com/carbon-design-system/carbon-charts/issues/770))
|
|
99
|
+
([4063c8a](https://github.com/carbon-design-system/carbon-charts/commit/4063c8a0f4d441589116759b32f2b214fad46154))
|
|
100
|
+
- enable or disable scatter dot on charts except scatter chart
|
|
101
|
+
([#769](https://github.com/carbon-design-system/carbon-charts/issues/769))
|
|
102
|
+
([3131942](https://github.com/carbon-design-system/carbon-charts/commit/313194217318719152d6a14c2a3cba957b8fc009))
|
|
90
103
|
|
|
91
104
|
## [0.36.4](https://github.com/carbon-design-system/carbon-charts/compare/v0.36.3...v0.36.4) (2020-09-10)
|
|
92
105
|
|
|
93
106
|
**Note:** Version bump only for package @carbon/charts
|
|
94
107
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
108
|
## [0.36.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.36.2...v0.36.3) (2020-09-10)
|
|
100
109
|
|
|
101
110
|
**Note:** Version bump only for package @carbon/charts
|
|
102
111
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
112
|
## [0.36.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.36.1...v0.36.2) (2020-09-02)
|
|
108
113
|
|
|
109
114
|
**Note:** Version bump only for package @carbon/charts
|
|
110
115
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
116
|
## [0.36.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.36.0...v0.36.1) (2020-09-01)
|
|
116
117
|
|
|
117
118
|
**Note:** Version bump only for package @carbon/charts
|
|
118
119
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
120
|
# [0.36.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.35.3...v0.36.0) (2020-08-25)
|
|
124
121
|
|
|
125
|
-
|
|
126
122
|
### Features
|
|
127
123
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
124
|
+
- change zoom bar handle cursor to ew-resize
|
|
125
|
+
([#759](https://github.com/carbon-design-system/carbon-charts/issues/759))
|
|
126
|
+
([f1fdab0](https://github.com/carbon-design-system/carbon-charts/commit/f1fdab005c09cb76984b3a7d17df24b7a860effd))
|
|
133
127
|
|
|
134
128
|
## [0.35.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.35.2...v0.35.3) (2020-08-21)
|
|
135
129
|
|
|
136
130
|
**Note:** Version bump only for package @carbon/charts
|
|
137
131
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
132
|
## [0.35.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.35.1...v0.35.2) (2020-08-21)
|
|
143
133
|
|
|
144
134
|
**Note:** Version bump only for package @carbon/charts
|
|
145
135
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
136
|
## [0.35.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.35.0...v0.35.1) (2020-08-18)
|
|
151
137
|
|
|
152
138
|
**Note:** Version bump only for package @carbon/charts
|
|
153
139
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
140
|
# Change Log
|
|
159
141
|
|
|
160
142
|
All notable changes to this project will be documented in this file. See
|
|
@@ -70,5 +70,16 @@ export declare const zoomBarLineTimeSeriesInitDomainData: {
|
|
|
70
70
|
}[];
|
|
71
71
|
};
|
|
72
72
|
export declare const zoomBarLineTimeSeriesInitDomainOptions: any;
|
|
73
|
+
export declare const zoomBarStringDateData: {
|
|
74
|
+
labels: string[];
|
|
75
|
+
datasets: {
|
|
76
|
+
label: string;
|
|
77
|
+
data: {
|
|
78
|
+
date: string;
|
|
79
|
+
value: number;
|
|
80
|
+
}[];
|
|
81
|
+
}[];
|
|
82
|
+
};
|
|
83
|
+
export declare const zoomBarStringDateOptions: any;
|
|
73
84
|
export declare const zoomBarSkeletonData: any[];
|
|
74
85
|
export declare const zoomBarSkeletonOptions: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component } from "../component";
|
|
2
2
|
export declare class Bar extends Component {
|
|
3
|
-
protected getBarWidth(allDataLabels?: string[]):
|
|
3
|
+
protected getBarWidth(allDataLabels?: string[]): any;
|
|
4
4
|
protected isOutsideZoomedDomain(x0: number, x1: number): boolean;
|
|
5
5
|
}
|
|
@@ -50,10 +50,18 @@ export interface TooltipOptions {
|
|
|
50
50
|
* passed an array or object with the data, and then the default tooltip markup
|
|
51
51
|
*/
|
|
52
52
|
customHTML?: Function;
|
|
53
|
+
/**
|
|
54
|
+
* customizes the `Group` label shown inside tooltips
|
|
55
|
+
*/
|
|
56
|
+
groupLabel?: string;
|
|
53
57
|
/**
|
|
54
58
|
* show total of items
|
|
55
59
|
*/
|
|
56
60
|
showTotal?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* customizes the `Total` label shown inside tooltips
|
|
63
|
+
*/
|
|
64
|
+
totalLabel?: string;
|
|
57
65
|
truncation?: TruncationOptions;
|
|
58
66
|
}
|
|
59
67
|
/**
|