@carbon/charts 1.16.2 → 1.16.4
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 +22 -0
- package/README.md +3 -4
- package/dist/charts/choropleth.d.ts +1 -1
- package/dist/charts/index.d.ts +3 -3
- package/dist/charts/wordcloud.d.ts +3 -2
- package/dist/{choropleth-C6lDAtOg.mjs → choropleth-ChNZz853.mjs} +9 -13
- package/dist/choropleth-ChNZz853.mjs.map +1 -0
- package/dist/color-scale-utils-C93P4hee.mjs.map +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/configuration.d.ts +2 -2
- package/dist/demo/charts/choropleth.d.ts +0 -2
- package/dist/demo/index.mjs +27 -32
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +43 -2
- package/dist/demo/styles.css.map +1 -1
- package/dist/enums-DwsxZqjR.mjs.map +1 -1
- package/dist/index.d.ts +10 -2
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.d.ts +5 -1
- package/dist/interfaces/charts.d.ts +3 -2
- package/dist/interfaces/index.d.ts +5 -1
- package/dist/umd/bundle.umd.js +14 -14
- package/dist/umd/bundle.umd.js.map +1 -1
- package/package.json +7 -7
- package/telemetry.yml +1 -1
- package/dist/choropleth-C6lDAtOg.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See
|
|
4
4
|
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 1.16.4 (2024-06-12)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **wordcloud,choropleth:** provide corrected names, deprecate old names
|
|
11
|
+
([#1832](https://github.com/carbon-design-system/carbon-charts/issues/1832))
|
|
12
|
+
([230ce7c](https://github.com/carbon-design-system/carbon-charts/commit/230ce7c3bdce8e03e70b8188e06a1d65ee90b2be))
|
|
13
|
+
|
|
14
|
+
# Change Log
|
|
15
|
+
|
|
16
|
+
All notable changes to this project will be documented in this file. See
|
|
17
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
18
|
+
|
|
19
|
+
## 1.16.3 (2024-06-03)
|
|
20
|
+
|
|
21
|
+
**Note:** Version bump only for package @carbon/charts
|
|
22
|
+
|
|
23
|
+
# Change Log
|
|
24
|
+
|
|
25
|
+
All notable changes to this project will be documented in this file. See
|
|
26
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
27
|
+
|
|
6
28
|
## 1.16.2 (2024-06-03)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @carbon/charts
|
package/README.md
CHANGED
|
@@ -47,9 +47,8 @@ Customizable options (specific to chart type) can be found
|
|
|
47
47
|
|
|
48
48
|
## <picture><source height="20" width="20" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-dark.svg"><source height="20" width="20" media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-light.svg"><img height="20" width="20" alt="IBM Telemetry" src="https://raw.githubusercontent.com/ibm-telemetry/telemetry-js/main/docs/images/ibm-telemetry-light.svg"></picture> IBM Telemetry
|
|
49
49
|
|
|
50
|
-
This package uses IBM Telemetry to collect metrics data. By installing this
|
|
51
|
-
|
|
52
|
-
see
|
|
50
|
+
This package uses IBM Telemetry to collect metrics data. By installing this package as a dependency
|
|
51
|
+
you are agreeing to telemetry collection. To opt out, see
|
|
53
52
|
[Opting out of IBM Telemetry data collection](https://github.com/ibm-telemetry/telemetry-js/tree/main#opting-out-of-ibm-telemetry-data-collection).
|
|
54
53
|
For more information on the data being collected, please see the
|
|
55
|
-
[IBM Telemetry documentation](https://github.com/ibm-telemetry/telemetry-js/tree/main#ibm-telemetry-collection-basics).
|
|
54
|
+
[IBM Telemetry documentation](https://github.com/ibm-telemetry/telemetry-js/tree/main#ibm-telemetry-collection-basics).
|
|
@@ -6,7 +6,7 @@ import { Component } from '../components/component';
|
|
|
6
6
|
import { Modal } from '../components/essentials/modal';
|
|
7
7
|
import { LayoutComponent } from '../components/layout/layout';
|
|
8
8
|
import { Tooltip } from '../components/essentials/tooltip';
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class ChoroplethChart extends Chart {
|
|
10
10
|
model: ChoroplethModel;
|
|
11
11
|
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<ChoroplethChartOptions>);
|
|
12
12
|
protected getChartComponents(graphFrameComponents: any[], configs?: any): (Tooltip | Modal | LayoutComponent)[];
|
package/dist/charts/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { AreaChart } from './area';
|
|
|
3
3
|
import { BoxplotChart } from './boxplot';
|
|
4
4
|
import { BubbleChart } from './bubble';
|
|
5
5
|
import { BulletChart } from './bullet';
|
|
6
|
-
import {
|
|
6
|
+
import { ChoroplethChart } from './choropleth';
|
|
7
7
|
import { CirclePackChart } from './circle-pack';
|
|
8
8
|
import { ComboChart } from './combo';
|
|
9
9
|
import { DonutChart } from './donut';
|
|
@@ -23,5 +23,5 @@ import { SimpleBarChart } from './bar-simple';
|
|
|
23
23
|
import { StackedAreaChart } from './area-stacked';
|
|
24
24
|
import { StackedBarChart } from './bar-stacked';
|
|
25
25
|
import { WordCloudChart } from './wordcloud';
|
|
26
|
-
export { AlluvialChart, AreaChart, BoxplotChart, BubbleChart, BulletChart,
|
|
27
|
-
export type Charts = AlluvialChart | AreaChart | BoxplotChart | BubbleChart | BulletChart |
|
|
26
|
+
export { AlluvialChart, AreaChart, BoxplotChart, BubbleChart, BulletChart, ChoroplethChart, CirclePackChart, ComboChart, DonutChart, GaugeChart, GroupedBarChart, HeatmapChart, HistogramChart, LineChart, LollipopChart, MeterChart, PieChart, RadarChart, ScatterChart, SimpleBarChart, StackedAreaChart, StackedBarChart, TreeChart, TreemapChart, WordCloudChart };
|
|
27
|
+
export type Charts = AlluvialChart | AreaChart | BoxplotChart | BubbleChart | BulletChart | ChoroplethChart | CirclePackChart | ComboChart | DonutChart | GaugeChart | GroupedBarChart | HeatmapChart | HistogramChart | LineChart | LollipopChart | MeterChart | PieChart | RadarChart | ScatterChart | SimpleBarChart | StackedAreaChart | StackedBarChart | TreeChart | TreemapChart | WordCloudChart;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Chart } from '../chart';
|
|
2
2
|
import { WordCloudModel } from '../model/wordcloud';
|
|
3
3
|
import { ChartConfig } from '../interfaces/model';
|
|
4
|
-
import {
|
|
4
|
+
import { WordCloudChartOptions } from '../interfaces/charts';
|
|
5
|
+
import { WorldCloudChartOptions } from '../interfaces';
|
|
5
6
|
import { Component } from '../components/component';
|
|
6
7
|
export declare class WordCloudChart extends Chart {
|
|
7
8
|
model: WordCloudModel;
|
|
8
|
-
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<WorldCloudChartOptions>);
|
|
9
|
+
constructor(holder: HTMLDivElement, chartConfigs: ChartConfig<WordCloudChartOptions | WorldCloudChartOptions>);
|
|
9
10
|
getComponents(): Component[];
|
|
10
11
|
}
|
|
@@ -1089,7 +1089,12 @@ const Gt = (o) => Wn.sanitize(o, {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
// special button config for overflow button
|
|
1091
1091
|
getOverflowButtonConfig() {
|
|
1092
|
-
const { moreOptions: e } = v(
|
|
1092
|
+
const { moreOptions: e } = v(
|
|
1093
|
+
this.model.getOptions(),
|
|
1094
|
+
"locale",
|
|
1095
|
+
"translations",
|
|
1096
|
+
"toolbar"
|
|
1097
|
+
);
|
|
1093
1098
|
return {
|
|
1094
1099
|
id: "toolbar-overflow-menu",
|
|
1095
1100
|
title: e,
|
|
@@ -1113,12 +1118,7 @@ const Gt = (o) => Wn.sanitize(o, {
|
|
|
1113
1118
|
makeFullScreen: p,
|
|
1114
1119
|
exitFullScreen: h,
|
|
1115
1120
|
showAsTable: u
|
|
1116
|
-
} = v(
|
|
1117
|
-
s,
|
|
1118
|
-
"locale",
|
|
1119
|
-
"translations",
|
|
1120
|
-
"toolbar"
|
|
1121
|
-
);
|
|
1121
|
+
} = v(s, "locale", "translations", "toolbar");
|
|
1122
1122
|
let g;
|
|
1123
1123
|
switch (e) {
|
|
1124
1124
|
case ie.ZOOM_IN:
|
|
@@ -3013,11 +3013,7 @@ class fl extends Y {
|
|
|
3013
3013
|
p,
|
|
3014
3014
|
() => this.services.domUtils.getElementOffset(E)
|
|
3015
3015
|
);
|
|
3016
|
-
x = this.addOffsetByPlacement(
|
|
3017
|
-
x,
|
|
3018
|
-
p,
|
|
3019
|
-
u
|
|
3020
|
-
), this.positionService.setElement(a, x);
|
|
3016
|
+
x = this.addOffsetByPlacement(x, p, u), this.positionService.setElement(a, x);
|
|
3021
3017
|
return;
|
|
3022
3018
|
}
|
|
3023
3019
|
let g = v(e, "detail", "mousePosition");
|
|
@@ -8715,4 +8711,4 @@ export {
|
|
|
8715
8711
|
Lh as y,
|
|
8716
8712
|
wh as z
|
|
8717
8713
|
};
|
|
8718
|
-
//# sourceMappingURL=choropleth-
|
|
8714
|
+
//# sourceMappingURL=choropleth-ChNZz853.mjs.map
|