@carbon/charts 0.38.7 → 0.40.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/CHANGELOG.md +46 -0
- package/build/demo/data/zoom-bar.d.ts +11 -0
- package/build/src/components/graphs/bar.d.ts +1 -1
- package/build/src/interfaces/components.d.ts +12 -0
- package/build/src/services/zoom.d.ts +2 -0
- package/bundle.js +1 -1
- package/components/axes/zoom-bar.js +7 -0
- package/components/axes/zoom-bar.js.map +1 -1
- package/components/essentials/legend.js +3 -2
- package/components/essentials/legend.js.map +1 -1
- package/components/essentials/tooltip-axis.js +4 -4
- package/components/essentials/tooltip-axis.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/radar.js +8 -2
- package/components/graphs/radar.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 +4 -2
- package/components/graphs/scatter.js.map +1 -1
- package/configuration.js +2 -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 +5 -5
- package/interfaces/components.d.ts +12 -0
- package/interfaces/components.js.map +1 -1
- package/model.js +31 -6
- package/model.js.map +1 -1
- package/package.json +1 -1
- package/services/scales-cartesian.js +7 -2
- package/services/scales-cartesian.js.map +1 -1
- package/services/zoom.d.ts +2 -0
- package/services/zoom.js +44 -3
- package/services/zoom.js.map +1 -1
- package/tsconfig.tsbuildinfo +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,52 @@
|
|
|
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.40.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.39.1...v0.40.0) (2020-10-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **core:** fix Legend and Tooltip group color ([#834](https://github.com/carbon-design-system/carbon-charts/issues/834)) ([da4c9f4](https://github.com/carbon-design-system/carbon-charts/commit/da4c9f4d5da605f19db87fde9ab4caa45056373d)), closes [#828](https://github.com/carbon-design-system/carbon-charts/issues/828) [#828](https://github.com/carbon-design-system/carbon-charts/issues/828)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* provide option to refresh range axis label ([#766](https://github.com/carbon-design-system/carbon-charts/issues/766)) ([070f9e3](https://github.com/carbon-design-system/carbon-charts/commit/070f9e38481362e1ad55f036915deb66d8a16648))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [0.39.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.39.0...v0.39.1) (2020-10-05)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **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))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [0.39.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.38.8...v0.39.0) (2020-10-01)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* **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))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
## [0.38.8](https://github.com/carbon-design-system/carbon-charts/compare/v0.38.7...v0.38.8) (2020-09-30)
|
|
45
|
+
|
|
46
|
+
**Note:** Version bump only for package @carbon/charts
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
6
52
|
## [0.38.7](https://github.com/carbon-design-system/carbon-charts/compare/v0.38.6...v0.38.7) (2020-09-23)
|
|
7
53
|
|
|
8
54
|
**Note:** Version bump only for package @carbon/charts
|
|
@@ -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
|
/**
|
|
@@ -113,6 +121,10 @@ export interface ZoomBarsOptions {
|
|
|
113
121
|
* currently only the top position is supported
|
|
114
122
|
*/
|
|
115
123
|
top?: ZoomBarOptions;
|
|
124
|
+
/**
|
|
125
|
+
* whether keep updating range axis in real time while zoom domain is changing
|
|
126
|
+
*/
|
|
127
|
+
updateRangeAxis?: boolean;
|
|
116
128
|
}
|
|
117
129
|
/**
|
|
118
130
|
* customize the ZoomBar component
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Service } from "./service";
|
|
2
2
|
export declare class Zoom extends Service {
|
|
3
|
+
isZoomBarEnabled(): boolean;
|
|
3
4
|
getZoomBarData(): {}[];
|
|
4
5
|
getDefaultZoomBarDomain(): any;
|
|
5
6
|
handleDomainChange(newDomain: any, configs?: {
|
|
6
7
|
dispatchEvent: boolean;
|
|
7
8
|
}): void;
|
|
8
9
|
getZoomRatio(): any;
|
|
10
|
+
filterDataForRangeAxis(displayData: object[], configs?: any): object[];
|
|
9
11
|
}
|