@carbon/charts 0.45.0 → 0.46.5
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 +68 -21
- package/build/demo/data/meter.d.ts +31 -0
- package/build/src/components/essentials/title-meter.d.ts +2 -0
- package/build/src/components/graphs/meter.d.ts +3 -0
- package/build/src/components/index.d.ts +0 -1
- package/build/src/configuration-non-customizable.d.ts +8 -0
- package/build/src/configuration.d.ts +2 -1
- package/build/src/interfaces/charts.d.ts +12 -0
- package/build/src/interfaces/events.d.ts +9 -0
- package/build/src/model/meter.d.ts +1 -2
- package/bundle.js +1 -1
- package/charts/histogram.js.map +1 -1
- package/charts/meter.js +7 -3
- package/charts/meter.js.map +1 -1
- package/components/axes/ruler-binned.js.map +1 -1
- package/components/essentials/title-meter.d.ts +2 -0
- package/components/essentials/title-meter.js +123 -24
- package/components/essentials/title-meter.js.map +1 -1
- package/components/essentials/title.js +3 -1
- package/components/essentials/title.js.map +1 -1
- package/components/graphs/bar-stacked.js +1 -1
- package/components/graphs/bar-stacked.js.map +1 -1
- package/components/graphs/histogram.js.map +1 -1
- package/components/graphs/meter.d.ts +3 -0
- package/components/graphs/meter.js +176 -21
- package/components/graphs/meter.js.map +1 -1
- package/components/graphs/radar.js +2 -1
- package/components/graphs/radar.js.map +1 -1
- package/components/index.d.ts +0 -1
- package/components/index.js +0 -1
- package/components/index.js.map +1 -1
- package/configuration-non-customizable.d.ts +8 -0
- package/configuration-non-customizable.js +8 -0
- package/configuration-non-customizable.js.map +1 -1
- package/configuration.d.ts +2 -1
- package/configuration.js +8 -1
- package/configuration.js.map +1 -1
- package/demo/create-codesandbox.js +6 -5
- package/demo/create-codesandbox.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/histogram.js +2 -2
- package/demo/data/histogram.js.map +1 -1
- package/demo/data/index.js +15 -0
- package/demo/data/index.js.map +1 -1
- package/demo/data/meter.d.ts +31 -0
- package/demo/data/meter.js +35 -0
- package/demo/data/meter.js.map +1 -1
- package/demo/styles.css +46 -0
- 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 +5 -5
- package/interfaces/axis-scales.js.map +1 -1
- package/interfaces/charts.d.ts +12 -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/meter.d.ts +1 -2
- package/model/meter.js +4 -14
- package/model/meter.js.map +1 -1
- package/package.json +1 -1
- package/styles/components/_legend.scss +4 -1
- package/styles/components/_meter-title.scss +4 -0
- package/styles/graphs/_meter.scss +12 -0
- package/styles-g10.css +11 -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 +12 -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 +12 -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 +11 -0
- package/styles.css.map +1 -1
- package/styles.min.css +1 -1
- package/styles.min.css.map +1 -1
- package/tools.js +12 -6
- package/tools.js.map +1 -1
- package/tsconfig.tsbuildinfo +28 -48
- package/build/src/components/essentials/tooltip-histogram.d.ts +0 -26
- package/components/essentials/tooltip-histogram.d.ts +0 -26
- package/components/essentials/tooltip-histogram.js +0 -154
- package/components/essentials/tooltip-histogram.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,18 +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
|
-
|
|
6
|
+
## [0.46.5](https://github.com/carbon-design-system/carbon-charts/compare/v0.46.4...v0.46.5) (2021-09-08)
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### Bug Fixes
|
|
10
10
|
|
|
11
|
-
* **core:**
|
|
11
|
+
* **core:** filter out dots with missing value ([#1136](https://github.com/carbon-design-system/carbon-charts/issues/1136)) ([c87bee8](https://github.com/carbon-design-system/carbon-charts/commit/c87bee87de7337a0b4a332d9a223ed3e3be92ab9)), closes [#1133](https://github.com/carbon-design-system/carbon-charts/issues/1133)
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
## [0.
|
|
17
|
+
## [0.46.4](https://github.com/carbon-design-system/carbon-charts/compare/v0.46.3...v0.46.4) (2021-08-31)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **core:** display correct toolbar controls based on provided options ([#1127](https://github.com/carbon-design-system/carbon-charts/issues/1127)) ([77e0e43](https://github.com/carbon-design-system/carbon-charts/commit/77e0e431c3c5c57eec3e49757747c1a7835f93de)), closes [#1109](https://github.com/carbon-design-system/carbon-charts/issues/1109)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [0.46.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.46.2...v0.46.3) (2021-08-31)
|
|
18
29
|
|
|
19
30
|
**Note:** Version bump only for package @carbon/charts
|
|
20
31
|
|
|
@@ -22,29 +33,39 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
22
33
|
|
|
23
34
|
|
|
24
35
|
|
|
25
|
-
|
|
36
|
+
## [0.46.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.46.1...v0.46.2) (2021-08-30)
|
|
37
|
+
|
|
38
|
+
**Note:** Version bump only for package @carbon/charts
|
|
26
39
|
|
|
27
40
|
|
|
28
|
-
### Features
|
|
29
41
|
|
|
30
|
-
* **core:** support negative values in stacked bar ([#1121](https://github.com/carbon-design-system/carbon-charts/issues/1121)) ([b71cc79](https://github.com/carbon-design-system/carbon-charts/commit/b71cc79876fe56b49cbb08441f41e17ee37fbcff))
|
|
31
42
|
|
|
32
43
|
|
|
44
|
+
## [0.46.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.46.0...v0.46.1) (2021-08-27)
|
|
33
45
|
|
|
46
|
+
**Note:** Version bump only for package @carbon/charts
|
|
34
47
|
|
|
35
48
|
|
|
36
|
-
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
# [0.46.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.45.1...v0.46.0) (2021-08-27)
|
|
37
53
|
|
|
38
54
|
|
|
39
55
|
### Features
|
|
40
56
|
|
|
41
|
-
* **
|
|
57
|
+
* **charts:** add proportional meter chart ([#1040](https://github.com/carbon-design-system/carbon-charts/issues/1040)) ([10592e4](https://github.com/carbon-design-system/carbon-charts/commit/10592e40665d104117b8e2d2580e5edc407c3e8d))
|
|
42
58
|
|
|
43
59
|
|
|
44
60
|
|
|
45
61
|
|
|
46
62
|
|
|
47
|
-
|
|
63
|
+
# Change Log
|
|
64
|
+
|
|
65
|
+
All notable changes to this project will be documented in this file. See
|
|
66
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
67
|
+
|
|
68
|
+
## [0.45.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.45.0...v0.45.1) (2021-08-23)
|
|
48
69
|
|
|
49
70
|
**Note:** Version bump only for package @carbon/charts
|
|
50
71
|
|
|
@@ -52,16 +73,51 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
52
73
|
|
|
53
74
|
|
|
54
75
|
|
|
55
|
-
# [0.
|
|
76
|
+
# [0.45.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.44.1...v0.45.0) (2021-08-19)
|
|
77
|
+
|
|
78
|
+
### Features
|
|
79
|
+
|
|
80
|
+
- **core:** Add options to map value to other keys
|
|
81
|
+
([#1122](https://github.com/carbon-design-system/carbon-charts/issues/1122))
|
|
82
|
+
([1835192](https://github.com/carbon-design-system/carbon-charts/commit/18351924acc182c24a7467dfc989fdc1e5c759dc)),
|
|
83
|
+
closes
|
|
84
|
+
[#1110](https://github.com/carbon-design-system/carbon-charts/issues/1110)
|
|
85
|
+
[#1110](https://github.com/carbon-design-system/carbon-charts/issues/1110)
|
|
86
|
+
[#1110](https://github.com/carbon-design-system/carbon-charts/issues/1110)
|
|
87
|
+
[#1110](https://github.com/carbon-design-system/carbon-charts/issues/1110)
|
|
88
|
+
[#1110](https://github.com/carbon-design-system/carbon-charts/issues/1110)
|
|
89
|
+
|
|
90
|
+
## [0.44.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.44.0...v0.44.1) (2021-08-19)
|
|
91
|
+
|
|
92
|
+
**Note:** Version bump only for package @carbon/charts
|
|
93
|
+
|
|
94
|
+
# [0.44.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.43.0...v0.44.0) (2021-08-18)
|
|
95
|
+
|
|
96
|
+
### Features
|
|
97
|
+
|
|
98
|
+
- **core:** support negative values in stacked bar
|
|
99
|
+
([#1121](https://github.com/carbon-design-system/carbon-charts/issues/1121))
|
|
100
|
+
([b71cc79](https://github.com/carbon-design-system/carbon-charts/commit/b71cc79876fe56b49cbb08441f41e17ee37fbcff))
|
|
56
101
|
|
|
102
|
+
# [0.43.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.42.1...v0.43.0) (2021-08-17)
|
|
57
103
|
|
|
58
104
|
### Features
|
|
59
105
|
|
|
60
|
-
|
|
106
|
+
- **core:** remove backgrounds on chart holder & wrapper
|
|
107
|
+
([#1120](https://github.com/carbon-design-system/carbon-charts/issues/1120))
|
|
108
|
+
([8044c99](https://github.com/carbon-design-system/carbon-charts/commit/8044c99cd4c307147a164d3e60bbb23d2a0a2dc4))
|
|
61
109
|
|
|
110
|
+
## [0.42.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.42.0...v0.42.1) (2021-08-13)
|
|
62
111
|
|
|
112
|
+
**Note:** Version bump only for package @carbon/charts
|
|
63
113
|
|
|
114
|
+
# [0.42.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.103...v0.42.0) (2021-08-13)
|
|
64
115
|
|
|
116
|
+
### Features
|
|
117
|
+
|
|
118
|
+
- **charts:** add histogram
|
|
119
|
+
([#1038](https://github.com/carbon-design-system/carbon-charts/issues/1038))
|
|
120
|
+
([07e07b3](https://github.com/carbon-design-system/carbon-charts/commit/07e07b3a2e8bc0eb01a7f4fdfc004e8095fb7b26))
|
|
65
121
|
|
|
66
122
|
# Change Log
|
|
67
123
|
|
|
@@ -267,15 +323,6 @@ All notable changes to this project will be documented in this file. See
|
|
|
267
323
|
|
|
268
324
|
**Note:** Version bump only for package @carbon/charts
|
|
269
325
|
|
|
270
|
-
# Change Log
|
|
271
|
-
|
|
272
|
-
All notable changes to this project will be documented in this file. See
|
|
273
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
274
|
-
|
|
275
|
-
## [0.41.68](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.67...v0.41.68) (2021-06-08)
|
|
276
|
-
|
|
277
|
-
**Note:** Version bump only for package @carbon/charts
|
|
278
|
-
|
|
279
326
|
## [0.41.67](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.66...v0.41.67) (2021-05-31)
|
|
280
327
|
|
|
281
328
|
### Bug Fixes
|
|
@@ -40,3 +40,34 @@ export declare const meterOptionsNoStatus: {
|
|
|
40
40
|
};
|
|
41
41
|
height: string;
|
|
42
42
|
};
|
|
43
|
+
export declare const propMeterData: {
|
|
44
|
+
group: string;
|
|
45
|
+
value: number;
|
|
46
|
+
}[];
|
|
47
|
+
export declare const propMeterOptions: {
|
|
48
|
+
title: string;
|
|
49
|
+
height: string;
|
|
50
|
+
meter: {
|
|
51
|
+
proportional: {
|
|
52
|
+
total: number;
|
|
53
|
+
unit: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
color: {
|
|
57
|
+
pairing: {
|
|
58
|
+
option: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export declare const propMeterTruncationOptions: {
|
|
63
|
+
title: string;
|
|
64
|
+
height: string;
|
|
65
|
+
meter: {
|
|
66
|
+
proportional: {
|
|
67
|
+
total: number;
|
|
68
|
+
unit: string;
|
|
69
|
+
totalFormatter: (total: any) => string;
|
|
70
|
+
breakdownFormatter: (x: any) => string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -3,5 +3,8 @@ import { RenderTypes } from '../../interfaces';
|
|
|
3
3
|
export declare class Meter extends Component {
|
|
4
4
|
type: string;
|
|
5
5
|
renderType: RenderTypes;
|
|
6
|
+
getStackedBounds(data: any, scale: any): any;
|
|
6
7
|
render(animate?: boolean): void;
|
|
8
|
+
addEventListeners(): void;
|
|
9
|
+
destroy(): void;
|
|
7
10
|
}
|
|
@@ -6,7 +6,6 @@ export * from './essentials/title';
|
|
|
6
6
|
export * from './essentials/title-meter';
|
|
7
7
|
export * from './essentials/tooltip';
|
|
8
8
|
export * from './essentials/tooltip-axis';
|
|
9
|
-
export * from "./essentials/tooltip-histogram";
|
|
10
9
|
export * from './essentials/canvas-chart-clip';
|
|
11
10
|
export * from './graphs/area';
|
|
12
11
|
export * from './graphs/area-stacked';
|
|
@@ -149,6 +149,14 @@ export declare const meter: {
|
|
|
149
149
|
indicatorSize: number;
|
|
150
150
|
paddingLeft: number;
|
|
151
151
|
};
|
|
152
|
+
total: {
|
|
153
|
+
paddingLeft: number;
|
|
154
|
+
};
|
|
155
|
+
height: {
|
|
156
|
+
default: number;
|
|
157
|
+
proportional: number;
|
|
158
|
+
};
|
|
159
|
+
dividerWidth: number;
|
|
152
160
|
};
|
|
153
161
|
export declare const pie: {
|
|
154
162
|
radiusOffset: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LollipopChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, BoxplotChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, BulletChartOptions, HistogramChartOptions, RadarChartOptions, ComboChartOptions, TreemapChartOptions, CirclePackChartOptions, WorldCloudChartOptions, GridOptions, RulerOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions } from './interfaces';
|
|
1
|
+
import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LollipopChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, BoxplotChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, BulletChartOptions, HistogramChartOptions, RadarChartOptions, ComboChartOptions, TreemapChartOptions, CirclePackChartOptions, WorldCloudChartOptions, GridOptions, RulerOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions, ProportionalMeterChartOptions } from './interfaces';
|
|
2
2
|
/**
|
|
3
3
|
* Grid options
|
|
4
4
|
*/
|
|
@@ -30,6 +30,7 @@ export declare const options: {
|
|
|
30
30
|
pieChart: PieChartOptions;
|
|
31
31
|
donutChart: DonutChartOptions;
|
|
32
32
|
meterChart: MeterChartOptions;
|
|
33
|
+
proportionalMeterChart: ProportionalMeterChartOptions;
|
|
33
34
|
radarChart: RadarChartOptions;
|
|
34
35
|
gaugeChart: GaugeChartOptions;
|
|
35
36
|
comboChart: ComboChartOptions;
|
|
@@ -339,6 +339,10 @@ export interface DonutChartOptions extends PieChartOptions {
|
|
|
339
339
|
}
|
|
340
340
|
export interface MeterChartOptions extends BaseChartOptions {
|
|
341
341
|
meter?: {
|
|
342
|
+
proportional?: {
|
|
343
|
+
total?: number;
|
|
344
|
+
unit?: string;
|
|
345
|
+
};
|
|
342
346
|
peak?: number;
|
|
343
347
|
status?: {
|
|
344
348
|
ranges: Array<{
|
|
@@ -357,6 +361,14 @@ export interface MeterChartOptions extends BaseChartOptions {
|
|
|
357
361
|
};
|
|
358
362
|
};
|
|
359
363
|
}
|
|
364
|
+
export interface ProportionalMeterChartOptions extends BaseChartOptions {
|
|
365
|
+
meter?: {
|
|
366
|
+
proportional?: {
|
|
367
|
+
total?: number;
|
|
368
|
+
unit?: string;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
}
|
|
360
372
|
/**
|
|
361
373
|
* options specific to radar charts
|
|
362
374
|
*/
|
|
@@ -185,3 +185,12 @@ export declare enum CirclePack {
|
|
|
185
185
|
CIRCLE_MOUSEOUT = "circle-leaf-mouseout",
|
|
186
186
|
CIRCLE_MOUSEMOVE = "circle-leaf-mousemove"
|
|
187
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* enum of all meter related events
|
|
190
|
+
*/
|
|
191
|
+
export declare enum Meter {
|
|
192
|
+
METER_MOUSEOVER = "meter-mouseover",
|
|
193
|
+
METER_CLICK = "meter-click",
|
|
194
|
+
METER_MOUSEOUT = "meter-mouseout",
|
|
195
|
+
METER_MOUSEMOVE = "meter-mousemove"
|
|
196
|
+
}
|
|
@@ -4,8 +4,7 @@ import { ChartModel } from './model';
|
|
|
4
4
|
* */
|
|
5
5
|
export declare class MeterChartModel extends ChartModel {
|
|
6
6
|
constructor(services: any);
|
|
7
|
-
|
|
8
|
-
getDisplayData(): any;
|
|
7
|
+
getMaximumDomain(data: any): any;
|
|
9
8
|
/**
|
|
10
9
|
* Use a provided color for the bar or default to carbon color if no status provided.
|
|
11
10
|
* Defaults to carbon color otherwise.
|