@carbon/charts 0.41.6 → 0.41.11
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 +51 -27
- package/build/demo/data/index.d.ts +5 -0
- package/build/demo/data/line.d.ts +3 -0
- package/build/demo/data/lollipop.d.ts +39 -0
- package/build/demo/data/step.d.ts +78 -4
- package/build/demo/data/time-series-axis.d.ts +48 -0
- package/build/src/axis-chart.d.ts +1 -1
- package/build/src/chart.d.ts +1 -1
- package/build/src/charts/index.d.ts +1 -0
- package/build/src/charts/lollipop.d.ts +6 -0
- package/build/src/components/graphs/lollipop.d.ts +9 -0
- package/build/src/components/graphs/scatter.d.ts +2 -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/model.d.ts +2 -1
- package/build/stories/tutorials/combo-charts.d.ts +4 -0
- package/build/stories/tutorials/index.d.ts +1 -0
- package/bundle.js +1 -1
- package/charts/bar-stacked.js.map +1 -1
- package/charts/combo.js +29 -8
- package/charts/combo.js.map +1 -1
- package/charts/index.d.ts +1 -0
- package/charts/index.js +1 -0
- package/charts/index.js.map +1 -1
- package/charts/lollipop.d.ts +6 -0
- package/charts/lollipop.js +50 -0
- package/charts/lollipop.js.map +1 -0
- package/charts/treemap.js.map +1 -1
- package/components/axes/axis.js.map +1 -1
- package/components/axes/ruler.js.map +1 -1
- package/components/axes/two-dimensional-axes.js.map +1 -1
- package/components/axes/zero-line.js.map +1 -1
- package/components/component.js.map +1 -1
- package/components/essentials/legend.js +3 -3
- package/components/essentials/legend.js.map +1 -1
- package/components/essentials/tooltip-axis.js +5 -2
- package/components/essentials/tooltip-axis.js.map +1 -1
- package/components/essentials/tooltip.js.map +1 -1
- package/components/graphs/area-stacked.js +7 -3
- package/components/graphs/area-stacked.js.map +1 -1
- package/components/graphs/area.js +1 -3
- package/components/graphs/area.js.map +1 -1
- package/components/graphs/bar-grouped.js +1 -2
- package/components/graphs/bar-grouped.js.map +1 -1
- package/components/graphs/bar-simple.js.map +1 -1
- package/components/graphs/bar-stacked.js +4 -2
- package/components/graphs/bar-stacked.js.map +1 -1
- package/components/graphs/bubble.js +1 -1
- package/components/graphs/bubble.js.map +1 -1
- package/components/graphs/line.js +8 -4
- package/components/graphs/line.js.map +1 -1
- package/components/graphs/lollipop.d.ts +9 -0
- package/components/graphs/lollipop.js +119 -0
- package/components/graphs/lollipop.js.map +1 -0
- package/components/graphs/scatter-stacked.js +14 -4
- package/components/graphs/scatter-stacked.js.map +1 -1
- package/components/graphs/scatter.d.ts +2 -0
- package/components/graphs/scatter.js +28 -18
- package/components/graphs/scatter.js.map +1 -1
- package/components/graphs/skeleton-lines.js.map +1 -1
- 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 +6 -1
- package/configuration.js.map +1 -1
- package/demo/data/area.js.map +1 -1
- package/demo/data/bubble.js.map +1 -1
- package/demo/data/bundle.js +1 -1
- package/demo/data/combo.js +11 -38
- package/demo/data/combo.js.map +1 -1
- package/demo/data/index.d.ts +5 -0
- package/demo/data/index.js +21 -0
- package/demo/data/index.js.map +1 -1
- package/demo/data/line.d.ts +3 -0
- package/demo/data/line.js +4 -3
- package/demo/data/line.js.map +1 -1
- package/demo/data/lollipop.d.ts +39 -0
- package/demo/data/lollipop.js +37 -0
- package/demo/data/lollipop.js.map +1 -0
- package/demo/data/step.d.ts +78 -4
- package/demo/data/step.js +4 -5
- package/demo/data/step.js.map +1 -1
- package/demo/data/time-series-axis.d.ts +48 -0
- package/demo/data/time-series-axis.js +48 -0
- package/demo/data/time-series-axis.js.map +1 -1
- package/demo/data/zoom-bar.js.map +1 -1
- package/demo/tsconfig.tsbuildinfo +134 -122
- package/interfaces/charts.d.ts +5 -0
- package/interfaces/charts.js.map +1 -1
- package/interfaces/model.d.ts +2 -1
- package/interfaces/model.js.map +1 -1
- package/model-cartesian-charts.js.map +1 -1
- package/model.js +3 -1
- package/model.js.map +1 -1
- package/package.json +1 -1
- package/services/scales-cartesian.js +44 -21
- package/services/scales-cartesian.js.map +1 -1
- package/styles/color-palatte.scss +12 -8
- package/styles/colors.scss +4 -4
- package/tsconfig.tsbuildinfo +80 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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.
|
|
6
|
+
## [0.41.11](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.10...v0.41.11) (2020-12-04)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @carbon/charts
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
## [0.41.
|
|
14
|
+
## [0.41.10](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.9...v0.41.10) (2020-12-01)
|
|
15
15
|
|
|
16
16
|
**Note:** Version bump only for package @carbon/charts
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
## [0.41.
|
|
22
|
+
## [0.41.9](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.8...v0.41.9) (2020-11-27)
|
|
23
23
|
|
|
24
24
|
**Note:** Version bump only for package @carbon/charts
|
|
25
25
|
|
|
@@ -27,39 +27,67 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
## [0.41.
|
|
30
|
+
## [0.41.8](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.7...v0.41.8) (2020-11-26)
|
|
31
31
|
|
|
32
|
+
**Note:** Version bump only for package @carbon/charts
|
|
32
33
|
|
|
33
|
-
### Bug Fixes
|
|
34
34
|
|
|
35
|
-
* **core:** use fill:transparent for toolbar controls ([#884](https://github.com/carbon-design-system/carbon-charts/issues/884)) ([681ec23](https://github.com/carbon-design-system/carbon-charts/commit/681ec23705d54bbf47f0e71655983ecbbebc7dd8))
|
|
36
35
|
|
|
37
36
|
|
|
38
37
|
|
|
38
|
+
# Change Log
|
|
39
39
|
|
|
40
|
+
All notable changes to this project will be documented in this file. See
|
|
41
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
40
42
|
|
|
41
|
-
## [0.41.
|
|
43
|
+
## [0.41.7](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.6...v0.41.7) (2020-11-26)
|
|
42
44
|
|
|
45
|
+
**Note:** Version bump only for package @carbon/charts
|
|
43
46
|
|
|
44
|
-
### Bug Fixes
|
|
45
47
|
|
|
46
|
-
* **core:** sanitize user provided axis domains ([5865b7a](https://github.com/carbon-design-system/carbon-charts/commit/5865b7a16ea424314115b05af818eed9449d2564))
|
|
47
|
-
* **core:** tooltips should hide when mouseout is triggered on the chart holder ([#887](https://github.com/carbon-design-system/carbon-charts/issues/887)) ([9ee5210](https://github.com/carbon-design-system/carbon-charts/commit/9ee5210497032108857f503b69eff2c73b22cf06))
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
|
+
## [0.41.6](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.5...v0.41.6) (2020-11-20)
|
|
51
52
|
|
|
53
|
+
**Note:** Version bump only for package @carbon/charts
|
|
52
54
|
|
|
53
|
-
## [0.41.
|
|
55
|
+
## [0.41.5](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.4...v0.41.5) (2020-11-19)
|
|
54
56
|
|
|
57
|
+
**Note:** Version bump only for package @carbon/charts
|
|
58
|
+
|
|
59
|
+
## [0.41.4](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.3...v0.41.4) (2020-11-16)
|
|
60
|
+
|
|
61
|
+
**Note:** Version bump only for package @carbon/charts
|
|
62
|
+
|
|
63
|
+
## [0.41.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.2...v0.41.3) (2020-11-16)
|
|
55
64
|
|
|
56
65
|
### Bug Fixes
|
|
57
66
|
|
|
58
|
-
|
|
67
|
+
- **core:** use fill:transparent for toolbar controls
|
|
68
|
+
([#884](https://github.com/carbon-design-system/carbon-charts/issues/884))
|
|
69
|
+
([681ec23](https://github.com/carbon-design-system/carbon-charts/commit/681ec23705d54bbf47f0e71655983ecbbebc7dd8))
|
|
70
|
+
|
|
71
|
+
## [0.41.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.1...v0.41.2) (2020-11-13)
|
|
72
|
+
|
|
73
|
+
### Bug Fixes
|
|
59
74
|
|
|
75
|
+
- **core:** sanitize user provided axis domains
|
|
76
|
+
([5865b7a](https://github.com/carbon-design-system/carbon-charts/commit/5865b7a16ea424314115b05af818eed9449d2564))
|
|
77
|
+
- **core:** tooltips should hide when mouseout is triggered on the chart
|
|
78
|
+
holder
|
|
79
|
+
([#887](https://github.com/carbon-design-system/carbon-charts/issues/887))
|
|
80
|
+
([9ee5210](https://github.com/carbon-design-system/carbon-charts/commit/9ee5210497032108857f503b69eff2c73b22cf06))
|
|
60
81
|
|
|
82
|
+
## [0.41.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.41.0...v0.41.1) (2020-11-10)
|
|
61
83
|
|
|
84
|
+
### Bug Fixes
|
|
62
85
|
|
|
86
|
+
- **core:** correct axis title paddings in y-axes
|
|
87
|
+
([#873](https://github.com/carbon-design-system/carbon-charts/issues/873))
|
|
88
|
+
([8a27a5f](https://github.com/carbon-design-system/carbon-charts/commit/8a27a5f65cbc55a878e603c9aa96c6f38d6ea10d)),
|
|
89
|
+
closes
|
|
90
|
+
[#859](https://github.com/carbon-design-system/carbon-charts/issues/859)
|
|
63
91
|
|
|
64
92
|
# Change Log
|
|
65
93
|
|
|
@@ -68,31 +96,27 @@ All notable changes to this project will be documented in this file. See
|
|
|
68
96
|
|
|
69
97
|
# [0.41.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.40.14...v0.41.0) (2020-11-10)
|
|
70
98
|
|
|
71
|
-
|
|
72
99
|
### Bug Fixes
|
|
73
100
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
101
|
+
- use fill:none to allow transparent toolbar control background
|
|
102
|
+
([#858](https://github.com/carbon-design-system/carbon-charts/issues/858))
|
|
103
|
+
([e4bf1bf](https://github.com/carbon-design-system/carbon-charts/commit/e4bf1bf45f59b5a4521aa2b6e5856715f148b1d5))
|
|
104
|
+
- **core:** only set zoombar data and sanitize date values if a cartesian
|
|
105
|
+
time-series chart
|
|
106
|
+
([88c8fa1](https://github.com/carbon-design-system/carbon-charts/commit/88c8fa1feee0d8866608bc39426638afb1c81294))
|
|
77
107
|
|
|
78
108
|
### Features
|
|
79
109
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
110
|
+
- **core:** add alignment options for gauge charts
|
|
111
|
+
([#877](https://github.com/carbon-design-system/carbon-charts/issues/877))
|
|
112
|
+
([5d4a621](https://github.com/carbon-design-system/carbon-charts/commit/5d4a621e4b92e3e1fdaa9a3318467c84379e8881))
|
|
85
113
|
|
|
86
114
|
## [0.40.14](https://github.com/carbon-design-system/carbon-charts/compare/v0.40.13...v0.40.14) (2020-11-09)
|
|
87
115
|
|
|
88
|
-
|
|
89
116
|
### Bug Fixes
|
|
90
117
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
118
|
+
- **core:** replace import to lodash with lodash-es
|
|
119
|
+
([700ba09](https://github.com/carbon-design-system/carbon-charts/commit/700ba0989ca130c2b750acc868b5bc36192f6f07))
|
|
96
120
|
|
|
97
121
|
## [0.40.13](https://github.com/carbon-design-system/carbon-charts/compare/v0.40.12...v0.40.13) (2020-11-06)
|
|
98
122
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export declare const lollipopDiscreteData: {
|
|
2
|
+
group: string;
|
|
3
|
+
key: string;
|
|
4
|
+
value: number;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const lollipopDiscreteOptions: {
|
|
7
|
+
title: string;
|
|
8
|
+
axes: {
|
|
9
|
+
bottom: {
|
|
10
|
+
title: string;
|
|
11
|
+
scaleType: string;
|
|
12
|
+
mapsTo: string;
|
|
13
|
+
};
|
|
14
|
+
left: {
|
|
15
|
+
mapsTo: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export declare const lollipopDiscretePresentationData: {
|
|
20
|
+
group: string;
|
|
21
|
+
key: string;
|
|
22
|
+
value: number;
|
|
23
|
+
}[];
|
|
24
|
+
export declare const lollipopDiscretePresentationOptions: {
|
|
25
|
+
title: string;
|
|
26
|
+
axes: {
|
|
27
|
+
left: {
|
|
28
|
+
title: string;
|
|
29
|
+
scaleType: string;
|
|
30
|
+
mapsTo: string;
|
|
31
|
+
};
|
|
32
|
+
bottom: {
|
|
33
|
+
mapsTo: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
points: {
|
|
37
|
+
radius: number;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
export declare const stepOptions:
|
|
1
|
+
export declare const stepOptions: {
|
|
2
|
+
title: string;
|
|
3
|
+
axes: {
|
|
4
|
+
bottom: {
|
|
5
|
+
title: string;
|
|
6
|
+
mapsTo: string;
|
|
7
|
+
scaleType: string;
|
|
8
|
+
};
|
|
9
|
+
left: {
|
|
10
|
+
mapsTo: string;
|
|
11
|
+
title: string;
|
|
12
|
+
scaleType: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
} & {
|
|
16
|
+
title: string;
|
|
17
|
+
curve: string;
|
|
18
|
+
};
|
|
2
19
|
export declare const stepData: ({
|
|
3
20
|
group: string;
|
|
4
21
|
key: string;
|
|
@@ -10,13 +27,70 @@ export declare const stepData: ({
|
|
|
10
27
|
value: number;
|
|
11
28
|
audienceSize: number;
|
|
12
29
|
})[];
|
|
13
|
-
export declare const stepTimeSeriesOptions:
|
|
30
|
+
export declare const stepTimeSeriesOptions: {
|
|
31
|
+
title: string;
|
|
32
|
+
axes: {
|
|
33
|
+
bottom: {
|
|
34
|
+
title: string;
|
|
35
|
+
mapsTo: string;
|
|
36
|
+
scaleType: string;
|
|
37
|
+
};
|
|
38
|
+
left: {
|
|
39
|
+
mapsTo: string;
|
|
40
|
+
title: string;
|
|
41
|
+
scaleType: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
curve: string;
|
|
45
|
+
} & {
|
|
46
|
+
title: string;
|
|
47
|
+
curve: string;
|
|
48
|
+
};
|
|
14
49
|
export declare const stepTimeSeriesData: {
|
|
15
50
|
group: string;
|
|
16
51
|
date: Date;
|
|
17
52
|
value: number;
|
|
18
53
|
}[];
|
|
19
54
|
export declare const stepEmptyStateData: any[];
|
|
20
|
-
export declare const stepEmptyStateOptions:
|
|
55
|
+
export declare const stepEmptyStateOptions: {
|
|
56
|
+
title: string;
|
|
57
|
+
axes: {
|
|
58
|
+
bottom: {
|
|
59
|
+
title: string;
|
|
60
|
+
mapsTo: string;
|
|
61
|
+
scaleType: string;
|
|
62
|
+
};
|
|
63
|
+
left: {
|
|
64
|
+
mapsTo: string;
|
|
65
|
+
title: string;
|
|
66
|
+
scaleType: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
curve: string;
|
|
70
|
+
} & {
|
|
71
|
+
title: string;
|
|
72
|
+
curve: string;
|
|
73
|
+
};
|
|
21
74
|
export declare const stepSkeletonData: any[];
|
|
22
|
-
export declare const stepSkeletonOptions:
|
|
75
|
+
export declare const stepSkeletonOptions: {
|
|
76
|
+
title: string;
|
|
77
|
+
axes: {
|
|
78
|
+
bottom: {
|
|
79
|
+
title: string;
|
|
80
|
+
mapsTo: string;
|
|
81
|
+
scaleType: string;
|
|
82
|
+
};
|
|
83
|
+
left: {
|
|
84
|
+
mapsTo: string;
|
|
85
|
+
title: string;
|
|
86
|
+
scaleType: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
curve: string;
|
|
90
|
+
} & {
|
|
91
|
+
title: string;
|
|
92
|
+
curve: string;
|
|
93
|
+
data: {
|
|
94
|
+
loading: boolean;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
@@ -16,6 +16,9 @@ export declare const lineTimeSeries15secondsOptions: {
|
|
|
16
16
|
scaleType: string;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
+
legend: {
|
|
20
|
+
clickable: boolean;
|
|
21
|
+
};
|
|
19
22
|
};
|
|
20
23
|
export declare const lineTimeSeriesDataMinute: {
|
|
21
24
|
labels: string[];
|
|
@@ -35,6 +38,9 @@ export declare const lineTimeSeriesMinuteOptions: {
|
|
|
35
38
|
scaleType: string;
|
|
36
39
|
};
|
|
37
40
|
};
|
|
41
|
+
legend: {
|
|
42
|
+
clickable: boolean;
|
|
43
|
+
};
|
|
38
44
|
};
|
|
39
45
|
export declare const lineTimeSeriesData30minutes: {
|
|
40
46
|
labels: string[];
|
|
@@ -54,6 +60,9 @@ export declare const lineTimeSeries30minutesOptions: {
|
|
|
54
60
|
scaleType: string;
|
|
55
61
|
};
|
|
56
62
|
};
|
|
63
|
+
legend: {
|
|
64
|
+
clickable: boolean;
|
|
65
|
+
};
|
|
57
66
|
};
|
|
58
67
|
export declare const lineTimeSeriesDataHourlyDefaultTicksFormats: {
|
|
59
68
|
labels: string[];
|
|
@@ -73,6 +82,9 @@ export declare const lineTimeSeriesHourlyDefaultLocaleOptions: {
|
|
|
73
82
|
scaleType: string;
|
|
74
83
|
};
|
|
75
84
|
};
|
|
85
|
+
legend: {
|
|
86
|
+
clickable: boolean;
|
|
87
|
+
};
|
|
76
88
|
};
|
|
77
89
|
export declare const lineTimeSeriesDataHourlyCustomTicksFormats: {
|
|
78
90
|
labels: string[];
|
|
@@ -100,6 +112,9 @@ export declare const lineTimeSeriesHourlyCustomTicksFormatsOptions: {
|
|
|
100
112
|
};
|
|
101
113
|
};
|
|
102
114
|
};
|
|
115
|
+
legend: {
|
|
116
|
+
clickable: boolean;
|
|
117
|
+
};
|
|
103
118
|
};
|
|
104
119
|
export declare const lineTimeSeriesDataDaily: {
|
|
105
120
|
labels: string[];
|
|
@@ -119,6 +134,9 @@ export declare const lineTimeSeriesDailyOptions: {
|
|
|
119
134
|
scaleType: string;
|
|
120
135
|
};
|
|
121
136
|
};
|
|
137
|
+
legend: {
|
|
138
|
+
clickable: boolean;
|
|
139
|
+
};
|
|
122
140
|
};
|
|
123
141
|
export declare const lineTimeSeriesDataWeekly: {
|
|
124
142
|
labels: string[];
|
|
@@ -141,6 +159,9 @@ export declare const lineTimeSeriesWeeklyOptions: {
|
|
|
141
159
|
timeScale: {
|
|
142
160
|
showDayName: boolean;
|
|
143
161
|
};
|
|
162
|
+
legend: {
|
|
163
|
+
clickable: boolean;
|
|
164
|
+
};
|
|
144
165
|
};
|
|
145
166
|
export declare const lineTimeSeriesDataMonthlyDefaultLocale: {
|
|
146
167
|
labels: string[];
|
|
@@ -160,6 +181,9 @@ export declare const lineTimeSeriesMonthlyDefaultLocaleOptions: {
|
|
|
160
181
|
scaleType: string;
|
|
161
182
|
};
|
|
162
183
|
};
|
|
184
|
+
legend: {
|
|
185
|
+
clickable: boolean;
|
|
186
|
+
};
|
|
163
187
|
};
|
|
164
188
|
export declare const lineTimeSeriesDataMonthlyCustomLocale: {
|
|
165
189
|
labels: string[];
|
|
@@ -182,6 +206,9 @@ export declare const lineTimeSeriesMonthlyCustomLocaleOptions: {
|
|
|
182
206
|
timeScale: {
|
|
183
207
|
localeObject: Locale;
|
|
184
208
|
};
|
|
209
|
+
legend: {
|
|
210
|
+
clickable: boolean;
|
|
211
|
+
};
|
|
185
212
|
};
|
|
186
213
|
export declare const lineTimeSeriesDataQuarterly: {
|
|
187
214
|
labels: string[];
|
|
@@ -201,6 +228,9 @@ export declare const lineTimeSeriesQuarterlyOptions: {
|
|
|
201
228
|
scaleType: string;
|
|
202
229
|
};
|
|
203
230
|
};
|
|
231
|
+
legend: {
|
|
232
|
+
clickable: boolean;
|
|
233
|
+
};
|
|
204
234
|
};
|
|
205
235
|
export declare const lineTimeSeriesDataYearly: {
|
|
206
236
|
labels: string[];
|
|
@@ -220,6 +250,9 @@ export declare const lineTimeSeriesYearlyOptions: {
|
|
|
220
250
|
scaleType: string;
|
|
221
251
|
};
|
|
222
252
|
};
|
|
253
|
+
legend: {
|
|
254
|
+
clickable: boolean;
|
|
255
|
+
};
|
|
223
256
|
};
|
|
224
257
|
export declare const lineTimeSeriesDataSingleDatum: {
|
|
225
258
|
labels: string[];
|
|
@@ -239,6 +272,9 @@ export declare const lineTimeSeriesSingleDatumOptions: {
|
|
|
239
272
|
scaleType: string;
|
|
240
273
|
};
|
|
241
274
|
};
|
|
275
|
+
legend: {
|
|
276
|
+
clickable: boolean;
|
|
277
|
+
};
|
|
242
278
|
};
|
|
243
279
|
export declare const lineTimeSeriesNoExtendedDomainData: {
|
|
244
280
|
labels: string[];
|
|
@@ -261,6 +297,9 @@ export declare const lineTimeSeriesNoExtendedDomainOptions: {
|
|
|
261
297
|
timeScale: {
|
|
262
298
|
addSpaceOnEdges: number;
|
|
263
299
|
};
|
|
300
|
+
legend: {
|
|
301
|
+
clickable: boolean;
|
|
302
|
+
};
|
|
264
303
|
};
|
|
265
304
|
export declare const lineTimeSeriesDataTwoIdenticalLabels: {
|
|
266
305
|
labels: string[];
|
|
@@ -283,6 +322,9 @@ export declare const lineTimeSeriesTwoIdenticalLabelsOptions: {
|
|
|
283
322
|
timeScale: {
|
|
284
323
|
addSpaceOnEdges: number;
|
|
285
324
|
};
|
|
325
|
+
legend: {
|
|
326
|
+
clickable: boolean;
|
|
327
|
+
};
|
|
286
328
|
};
|
|
287
329
|
export declare const lineTimeSeriesTwoIdenticalLabels2Options: {
|
|
288
330
|
title: string;
|
|
@@ -295,6 +337,9 @@ export declare const lineTimeSeriesTwoIdenticalLabels2Options: {
|
|
|
295
337
|
timeScale: {
|
|
296
338
|
addSpaceOnEdges: number;
|
|
297
339
|
};
|
|
340
|
+
legend: {
|
|
341
|
+
clickable: boolean;
|
|
342
|
+
};
|
|
298
343
|
};
|
|
299
344
|
export declare const lineTimeSeriesDataAllLabelsInPrimaryFormat: {
|
|
300
345
|
labels: string[];
|
|
@@ -317,4 +362,7 @@ export declare const lineTimeSeriesAllLabelsInPrimaryFormatOptions: {
|
|
|
317
362
|
timeScale: {
|
|
318
363
|
addSpaceOnEdges: number;
|
|
319
364
|
};
|
|
365
|
+
legend: {
|
|
366
|
+
clickable: boolean;
|
|
367
|
+
};
|
|
320
368
|
};
|
|
@@ -6,5 +6,5 @@ export declare class AxisChart extends Chart {
|
|
|
6
6
|
services: any;
|
|
7
7
|
model: ChartModelCartesian;
|
|
8
8
|
constructor(holder: Element, chartConfigs: ChartConfig<AxisChartOptions>);
|
|
9
|
-
protected getAxisChartComponents(graphFrameComponents: any[]): (
|
|
9
|
+
protected getAxisChartComponents(graphFrameComponents: any[]): (AxisChartsTooltip | LayoutComponent)[];
|
|
10
10
|
}
|
package/build/src/chart.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ export declare class Chart {
|
|
|
10
10
|
getComponents(): any[];
|
|
11
11
|
update(animate?: boolean): void;
|
|
12
12
|
destroy(): void;
|
|
13
|
-
protected getChartComponents(graphFrameComponents: any[]): (
|
|
13
|
+
protected getChartComponents(graphFrameComponents: any[]): (Tooltip | LayoutComponent)[];
|
|
14
14
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AxisChart } from "../axis-chart";
|
|
2
|
+
import { ChartConfig, LollipopChartOptions } from "../interfaces/index";
|
|
3
|
+
export declare class LollipopChart extends AxisChart {
|
|
4
|
+
constructor(holder: Element, chartConfigs: ChartConfig<LollipopChartOptions>);
|
|
5
|
+
getComponents(): any[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Scatter } from "./scatter";
|
|
2
|
+
export declare class Lollipop extends Scatter {
|
|
3
|
+
type: string;
|
|
4
|
+
init(): void;
|
|
5
|
+
render(animate: boolean): void;
|
|
6
|
+
handleLegendOnHover: (event: CustomEvent<any>) => void;
|
|
7
|
+
handleLegendMouseOut: (event: CustomEvent<any>) => void;
|
|
8
|
+
destroy(): void;
|
|
9
|
+
}
|
|
@@ -2,8 +2,10 @@ import { Component } from "../component";
|
|
|
2
2
|
import { Selection } from "d3-selection";
|
|
3
3
|
export declare class Scatter extends Component {
|
|
4
4
|
type: string;
|
|
5
|
+
scatterData: any;
|
|
5
6
|
init(): void;
|
|
6
7
|
filterBasedOnZoomDomain(data: any): any;
|
|
8
|
+
getScatterData(): any;
|
|
7
9
|
render(animate: boolean): void;
|
|
8
10
|
isDatapointThresholdAnomaly(datum: any, index: number): boolean;
|
|
9
11
|
styleCircles(selection: Selection<any, any, any, any>, animate: boolean): void;
|
|
@@ -12,6 +12,7 @@ export * from "./graphs/bar-grouped";
|
|
|
12
12
|
export * from "./graphs/bar-stacked";
|
|
13
13
|
export * from "./graphs/bubble";
|
|
14
14
|
export * from "./graphs/line";
|
|
15
|
+
export * from "./graphs/lollipop";
|
|
15
16
|
export * from "./graphs/scatter";
|
|
16
17
|
export * from "./graphs/scatter-stacked";
|
|
17
18
|
export * from "./graphs/pie";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, RadarChartOptions, ComboChartOptions, TreemapChartOptions, GridOptions, RulerOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions } from "./interfaces";
|
|
1
|
+
import { BaseChartOptions, AxisChartOptions, ScatterChartOptions, LollipopChartOptions, LineChartOptions, BarChartOptions, StackedBarChartOptions, AreaChartOptions, PieChartOptions, GaugeChartOptions, DonutChartOptions, BubbleChartOptions, RadarChartOptions, ComboChartOptions, TreemapChartOptions, GridOptions, RulerOptions, TimeScaleOptions, TooltipOptions, MeterChartOptions } from "./interfaces";
|
|
2
2
|
/**
|
|
3
3
|
* Grid options
|
|
4
4
|
*/
|
|
@@ -23,6 +23,7 @@ export declare const options: {
|
|
|
23
23
|
areaChart: AreaChartOptions;
|
|
24
24
|
stackedAreaChart: AreaChartOptions;
|
|
25
25
|
scatterChart: ScatterChartOptions;
|
|
26
|
+
lollipopChart: LollipopChartOptions;
|
|
26
27
|
pieChart: PieChartOptions;
|
|
27
28
|
donutChart: DonutChartOptions;
|
|
28
29
|
meterChart: MeterChartOptions;
|
|
@@ -139,6 +139,11 @@ export interface ScatterChartOptions extends AxisChartOptions {
|
|
|
139
139
|
enabled?: boolean;
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* options specific to lollipop charts
|
|
144
|
+
*/
|
|
145
|
+
export interface LollipopChartOptions extends ScatterChartOptions {
|
|
146
|
+
}
|
|
142
147
|
/**
|
|
143
148
|
* options specific to bubble charts
|
|
144
149
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AxisChartOptions } from "./charts";
|
|
2
|
+
export declare type ChartTabularData = Record<string, any>[];
|
|
2
3
|
/**
|
|
3
4
|
* Configuration passed to the chart.
|
|
4
5
|
*
|
|
@@ -6,7 +7,7 @@ import { AxisChartOptions } from "./charts";
|
|
|
6
7
|
*/
|
|
7
8
|
export interface ChartConfig<T extends AxisChartOptions> {
|
|
8
9
|
options: T;
|
|
9
|
-
data:
|
|
10
|
+
data: ChartTabularData;
|
|
10
11
|
}
|
|
11
12
|
export interface DataSet {
|
|
12
13
|
/**
|