@carbon/charts 1.13.15 → 1.13.17
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 +9 -4
- package/dist/{_baseEach-HUN6tK0-.mjs → _baseEach-L1oeNjGL.mjs} +2 -2
- package/dist/{_baseEach-HUN6tK0-.mjs.map → _baseEach-L1oeNjGL.mjs.map} +1 -1
- package/dist/{angle-utils-32tpV6-P.mjs → angle-utils-iPPUNSDt.mjs} +4 -12
- package/dist/{angle-utils-32tpV6-P.mjs.map → angle-utils-iPPUNSDt.mjs.map} +1 -1
- package/dist/{choropleth-cqJq7eSU.mjs → choropleth-EFcahG_A.mjs} +3221 -2698
- package/dist/choropleth-EFcahG_A.mjs.map +1 -0
- package/dist/{color-scale-utils-bwaA2TiF.mjs → color-scale-utils-GLd1MML3.mjs} +2 -2
- package/dist/color-scale-utils-GLd1MML3.mjs.map +1 -0
- package/dist/components/axes/axis.d.ts +1 -1
- package/dist/components/axes/chart-clip.d.ts +1 -1
- package/dist/components/axes/grid-brush.d.ts +1 -1
- package/dist/components/axes/grid.d.ts +1 -1
- package/dist/components/axes/ruler.d.ts +1 -1
- package/dist/components/axes/toolbar.d.ts +1 -1
- package/dist/components/axes/two-dimensional-axes.d.ts +2 -2
- package/dist/components/axes/zero-line.d.ts +1 -1
- package/dist/components/axes/zoom-bar.d.ts +1 -1
- package/dist/components/essentials/canvas-chart-clip.d.ts +1 -1
- package/dist/components/essentials/geo-projection.d.ts +1 -1
- package/dist/components/essentials/highlights.d.ts +1 -1
- package/dist/components/essentials/legend.d.ts +1 -1
- package/dist/components/essentials/modal.d.ts +1 -1
- package/dist/components/essentials/threshold.d.ts +1 -1
- package/dist/components/essentials/title.d.ts +1 -1
- package/dist/components/essentials/tooltip.d.ts +1 -1
- package/dist/components/graphs/alluvial.d.ts +1 -1
- package/dist/components/graphs/area-stacked.d.ts +1 -1
- package/dist/components/graphs/area.d.ts +1 -1
- package/dist/components/graphs/bar.d.ts +1 -1
- package/dist/components/graphs/boxplot.d.ts +1 -1
- package/dist/components/graphs/bullet.d.ts +1 -1
- package/dist/components/graphs/choropleth.d.ts +1 -1
- package/dist/components/graphs/circle-pack.d.ts +1 -1
- package/dist/components/graphs/gauge.d.ts +1 -1
- package/dist/components/graphs/heatmap.d.ts +1 -1
- package/dist/components/graphs/histogram.d.ts +1 -1
- package/dist/components/graphs/line.d.ts +1 -1
- package/dist/components/graphs/meter.d.ts +1 -1
- package/dist/components/graphs/pie.d.ts +1 -1
- package/dist/components/graphs/radar.d.ts +1 -1
- package/dist/components/graphs/scatter.d.ts +1 -1
- package/dist/components/graphs/skeleton.d.ts +1 -1
- package/dist/components/graphs/tree.d.ts +1 -1
- package/dist/components/graphs/treemap.d.ts +1 -1
- package/dist/components/graphs/wordcloud.d.ts +1 -1
- package/dist/components/index.mjs +4 -4
- package/dist/components/layout/layout.d.ts +1 -1
- package/dist/components/layout/spacer.d.ts +1 -1
- package/dist/demo/index.mjs +20 -18
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +35 -11
- package/dist/demo/styles.css.map +1 -1
- package/dist/demo/utils/stackblitz/angular.d.ts +1 -1
- package/dist/demo/utils/stackblitz/react.d.ts +1 -1
- package/dist/demo/utils/stackblitz/svelte.d.ts +1 -1
- package/dist/demo/utils/stackblitz/vanilla-js.d.ts +1 -1
- package/dist/demo/utils/stackblitz/vue.d.ts +1 -1
- package/dist/demo/utils/story-widgets.d.ts +1 -1
- package/dist/enums-tMKLWMMm.mjs.map +1 -1
- package/dist/index.mjs +16 -17
- package/dist/index.mjs.map +1 -1
- package/dist/model/index.mjs +3 -3
- package/dist/services/essentials/dom-utils.d.ts +1 -1
- package/dist/services/essentials/events.d.ts +1 -1
- package/dist/services/essentials/files.d.ts +1 -1
- package/dist/services/essentials/gradient-utils.d.ts +1 -1
- package/dist/services/essentials/transitions.d.ts +1 -1
- package/dist/services/index.mjs +3 -3
- package/dist/styles.css +35 -11
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/dist/umd/bundle.umd.js +85 -0
- package/dist/umd/bundle.umd.js.map +1 -0
- package/dist/utils/sanitizeHtml.d.ts +3 -0
- package/dist/{wordcloud-dqk1DqiP.mjs → wordcloud-XkAQGXwu.mjs} +80 -79
- package/dist/wordcloud-XkAQGXwu.mjs.map +1 -0
- package/dist/{zoom-OcSt8txb.mjs → zoom-nkwOD6_z.mjs} +6 -4
- package/dist/zoom-nkwOD6_z.mjs.map +1 -0
- package/package.json +6 -4
- package/scss/_chart-wrapper.scss +1 -1
- package/scss/_color-palette.scss +8 -8
- package/scss/components/_title.scss +1 -1
- package/scss/components/_tooltip.scss +6 -2
- package/scss/components/toolbar/_buttons.scss +160 -159
- package/scss/components/toolbar/_modal.scss +348 -315
- package/scss/demos.scss +3 -2
- package/scss/graphs/_choropleth.scss +1 -1
- package/scss/graphs/_tree.scss +2 -1
- package/scss/index.scss +1 -1
- package/styles.css +35 -11
- package/styles.min.css +1 -1
- package/dist/choropleth-cqJq7eSU.mjs.map +0 -1
- package/dist/color-scale-utils-bwaA2TiF.mjs.map +0 -1
- package/dist/umd/bundle.umd.cjs +0 -84
- package/dist/umd/bundle.umd.cjs.map +0 -1
- package/dist/wordcloud-dqk1DqiP.mjs.map +0 -1
- package/dist/zoom-OcSt8txb.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.13.17 (2023-12-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @carbon/charts
|
|
9
|
+
|
|
10
|
+
# Change Log
|
|
11
|
+
|
|
12
|
+
All notable changes to this project will be documented in this file. See
|
|
13
|
+
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
14
|
+
|
|
15
|
+
## 1.13.16 (2023-12-27)
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
- **core,react,vue:** misnamed entry points generated by vite
|
|
20
|
+
([#1708](https://github.com/carbon-design-system/carbon-charts/issues/1708))
|
|
21
|
+
([882bf01](https://github.com/carbon-design-system/carbon-charts/commit/882bf01608be75d2990b27b7f656741c0c3685e2))
|
|
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.13.15 (2023-12-22)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @carbon/charts
|
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# Carbon Charts
|
|
2
2
|
|
|
3
|
-
Carbon Charts is a component library for vanilla JavaScript. Chart visualizations are based on
|
|
3
|
+
Carbon Charts is a component library for vanilla JavaScript. Chart visualizations are based on
|
|
4
|
+
D3.js, a peer dependency.
|
|
4
5
|
|
|
5
|
-
The required styles should be imported from `@carbon/charts/dist/styles.css`. Additional
|
|
6
|
+
The required styles should be imported from `@carbon/charts/dist/styles.css`. Additional
|
|
7
|
+
documentation is provided in the Storybook demos.
|
|
6
8
|
|
|
7
9
|
## Getting started
|
|
8
10
|
|
|
@@ -25,14 +27,17 @@ Read
|
|
|
25
27
|
|
|
26
28
|
## Storybook and StackBlitz Examples
|
|
27
29
|
|
|
28
|
-
[Live examples](https://
|
|
30
|
+
[Live examples](https://charts.carbondesignsystem.com).
|
|
29
31
|
|
|
30
32
|
**When opening the link above**, click on the **Edit on StackBlitz** button for each demo to see an
|
|
31
33
|
isolated project showing you how to reproduce the demo.
|
|
32
34
|
|
|
33
35
|
## Charting data & options
|
|
34
36
|
|
|
35
|
-
Although new charts will be introduced in the future (such as a choropleth), data and options follow
|
|
37
|
+
Although new charts will be introduced in the future (such as a choropleth), data and options follow
|
|
38
|
+
the same model for all charts with minor exceptions. For example, in the case of a donut chart,
|
|
39
|
+
you're able to pass in an additional field called `center` in your options to configure the donut
|
|
40
|
+
center.
|
|
36
41
|
|
|
37
42
|
For instructions on using the **tabular data format**, see
|
|
38
43
|
[here](https://charts.carbondesignsystem.com/?path=/docs/docs-tutorials-tabular-data-format--docs)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as f, k as h, h as t } from "./color-scale-utils-
|
|
1
|
+
import { e as f, k as h, h as t } from "./color-scale-utils-GLd1MML3.mjs";
|
|
2
2
|
function i(a, e) {
|
|
3
3
|
return a && f(a, e, h);
|
|
4
4
|
}
|
|
@@ -18,4 +18,4 @@ const v = E;
|
|
|
18
18
|
export {
|
|
19
19
|
v as b
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=_baseEach-
|
|
21
|
+
//# sourceMappingURL=_baseEach-L1oeNjGL.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_baseEach-
|
|
1
|
+
{"version":3,"file":"_baseEach-L1oeNjGL.mjs","sources":["../../../node_modules/lodash-es/_baseForOwn.js","../../../node_modules/lodash-es/_createBaseEach.js","../../../node_modules/lodash-es/_baseEach.js"],"sourcesContent":["import baseFor from './_baseFor.js';\nimport keys from './keys.js';\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\nexport default baseForOwn;\n","import isArrayLike from './isArrayLike.js';\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nexport default createBaseEach;\n","import baseForOwn from './_baseForOwn.js';\nimport createBaseEach from './_createBaseEach.js';\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nexport default baseEach;\n"],"names":["baseForOwn","object","iteratee","baseFor","keys","createBaseEach","eachFunc","fromRight","collection","isArrayLike","length","index","iterable","baseEach","baseEach$1"],"mappings":";AAWA,SAASA,EAAWC,GAAQC,GAAU;AACpC,SAAOD,KAAUE,EAAQF,GAAQC,GAAUE,CAAI;AACjD;ACHA,SAASC,EAAeC,GAAUC,GAAW;AAC3C,SAAO,SAASC,GAAYN,GAAU;AACpC,QAAIM,KAAc;AAChB,aAAOA;AAET,QAAI,CAACC,EAAYD,CAAU;AACzB,aAAOF,EAASE,GAAYN,CAAQ;AAMtC,aAJIQ,IAASF,EAAW,QACpBG,IAAQJ,IAAYG,IAAS,IAC7BE,IAAW,OAAOJ,CAAU,IAExBD,IAAYI,MAAU,EAAEA,IAAQD,MAClCR,EAASU,EAASD,CAAK,GAAGA,GAAOC,CAAQ,MAAM;AAAnD;AAIF,WAAOJ;AAAA,EACX;AACA;AClBA,IAAIK,IAAWR,EAAeL,CAAU;AAExC,MAAAc,IAAeD;","x_google_ignoreList":[0,1,2]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { select as m } from "d3";
|
|
2
|
-
import { j as fe, l as O, r as de, m as T, n as _ } from "./color-scale-utils-
|
|
2
|
+
import { j as fe, l as O, r as de, m as T, n as _ } from "./color-scale-utils-GLd1MML3.mjs";
|
|
3
3
|
import { _ as P, T as E, o as b } from "./enums-tMKLWMMm.mjs";
|
|
4
4
|
var me = /\s/;
|
|
5
5
|
function ge(t) {
|
|
@@ -669,11 +669,7 @@ class k extends oe {
|
|
|
669
669
|
}).then(function(s) {
|
|
670
670
|
var o;
|
|
671
671
|
let a = "myChart";
|
|
672
|
-
const c = T(
|
|
673
|
-
n,
|
|
674
|
-
"fileDownload",
|
|
675
|
-
"fileName"
|
|
676
|
-
);
|
|
672
|
+
const c = T(n, "fileDownload", "fileName");
|
|
677
673
|
typeof c == "function" ? a = c("jpg") : typeof c == "string" && (a = c), (o = e.services.files) == null || o.downloadImage(s, `${a}.jpg`), i.classed("filled", !1);
|
|
678
674
|
});
|
|
679
675
|
}
|
|
@@ -686,11 +682,7 @@ class k extends oe {
|
|
|
686
682
|
}).then(function(s) {
|
|
687
683
|
var o;
|
|
688
684
|
let a = "myChart";
|
|
689
|
-
const c = T(
|
|
690
|
-
n,
|
|
691
|
-
"fileDownload",
|
|
692
|
-
"fileName"
|
|
693
|
-
);
|
|
685
|
+
const c = T(n, "fileDownload", "fileName");
|
|
694
686
|
typeof c == "function" ? a = c("png") : typeof c == "string" && (a = c), (o = e.services.files) == null || o.downloadImage(s, `${a}.png`), i.classed("filled", !1);
|
|
695
687
|
}).catch(function(s) {
|
|
696
688
|
console.error("oops, something went wrong!", s);
|
|
@@ -849,4 +841,4 @@ export {
|
|
|
849
841
|
Ct as r,
|
|
850
842
|
j as t
|
|
851
843
|
};
|
|
852
|
-
//# sourceMappingURL=angle-utils-
|
|
844
|
+
//# sourceMappingURL=angle-utils-iPPUNSDt.mjs.map
|