@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.
Files changed (100) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +9 -4
  3. package/dist/{_baseEach-HUN6tK0-.mjs → _baseEach-L1oeNjGL.mjs} +2 -2
  4. package/dist/{_baseEach-HUN6tK0-.mjs.map → _baseEach-L1oeNjGL.mjs.map} +1 -1
  5. package/dist/{angle-utils-32tpV6-P.mjs → angle-utils-iPPUNSDt.mjs} +4 -12
  6. package/dist/{angle-utils-32tpV6-P.mjs.map → angle-utils-iPPUNSDt.mjs.map} +1 -1
  7. package/dist/{choropleth-cqJq7eSU.mjs → choropleth-EFcahG_A.mjs} +3221 -2698
  8. package/dist/choropleth-EFcahG_A.mjs.map +1 -0
  9. package/dist/{color-scale-utils-bwaA2TiF.mjs → color-scale-utils-GLd1MML3.mjs} +2 -2
  10. package/dist/color-scale-utils-GLd1MML3.mjs.map +1 -0
  11. package/dist/components/axes/axis.d.ts +1 -1
  12. package/dist/components/axes/chart-clip.d.ts +1 -1
  13. package/dist/components/axes/grid-brush.d.ts +1 -1
  14. package/dist/components/axes/grid.d.ts +1 -1
  15. package/dist/components/axes/ruler.d.ts +1 -1
  16. package/dist/components/axes/toolbar.d.ts +1 -1
  17. package/dist/components/axes/two-dimensional-axes.d.ts +2 -2
  18. package/dist/components/axes/zero-line.d.ts +1 -1
  19. package/dist/components/axes/zoom-bar.d.ts +1 -1
  20. package/dist/components/essentials/canvas-chart-clip.d.ts +1 -1
  21. package/dist/components/essentials/geo-projection.d.ts +1 -1
  22. package/dist/components/essentials/highlights.d.ts +1 -1
  23. package/dist/components/essentials/legend.d.ts +1 -1
  24. package/dist/components/essentials/modal.d.ts +1 -1
  25. package/dist/components/essentials/threshold.d.ts +1 -1
  26. package/dist/components/essentials/title.d.ts +1 -1
  27. package/dist/components/essentials/tooltip.d.ts +1 -1
  28. package/dist/components/graphs/alluvial.d.ts +1 -1
  29. package/dist/components/graphs/area-stacked.d.ts +1 -1
  30. package/dist/components/graphs/area.d.ts +1 -1
  31. package/dist/components/graphs/bar.d.ts +1 -1
  32. package/dist/components/graphs/boxplot.d.ts +1 -1
  33. package/dist/components/graphs/bullet.d.ts +1 -1
  34. package/dist/components/graphs/choropleth.d.ts +1 -1
  35. package/dist/components/graphs/circle-pack.d.ts +1 -1
  36. package/dist/components/graphs/gauge.d.ts +1 -1
  37. package/dist/components/graphs/heatmap.d.ts +1 -1
  38. package/dist/components/graphs/histogram.d.ts +1 -1
  39. package/dist/components/graphs/line.d.ts +1 -1
  40. package/dist/components/graphs/meter.d.ts +1 -1
  41. package/dist/components/graphs/pie.d.ts +1 -1
  42. package/dist/components/graphs/radar.d.ts +1 -1
  43. package/dist/components/graphs/scatter.d.ts +1 -1
  44. package/dist/components/graphs/skeleton.d.ts +1 -1
  45. package/dist/components/graphs/tree.d.ts +1 -1
  46. package/dist/components/graphs/treemap.d.ts +1 -1
  47. package/dist/components/graphs/wordcloud.d.ts +1 -1
  48. package/dist/components/index.mjs +4 -4
  49. package/dist/components/layout/layout.d.ts +1 -1
  50. package/dist/components/layout/spacer.d.ts +1 -1
  51. package/dist/demo/index.mjs +20 -18
  52. package/dist/demo/index.mjs.map +1 -1
  53. package/dist/demo/styles.css +35 -11
  54. package/dist/demo/styles.css.map +1 -1
  55. package/dist/demo/utils/stackblitz/angular.d.ts +1 -1
  56. package/dist/demo/utils/stackblitz/react.d.ts +1 -1
  57. package/dist/demo/utils/stackblitz/svelte.d.ts +1 -1
  58. package/dist/demo/utils/stackblitz/vanilla-js.d.ts +1 -1
  59. package/dist/demo/utils/stackblitz/vue.d.ts +1 -1
  60. package/dist/demo/utils/story-widgets.d.ts +1 -1
  61. package/dist/enums-tMKLWMMm.mjs.map +1 -1
  62. package/dist/index.mjs +16 -17
  63. package/dist/index.mjs.map +1 -1
  64. package/dist/model/index.mjs +3 -3
  65. package/dist/services/essentials/dom-utils.d.ts +1 -1
  66. package/dist/services/essentials/events.d.ts +1 -1
  67. package/dist/services/essentials/files.d.ts +1 -1
  68. package/dist/services/essentials/gradient-utils.d.ts +1 -1
  69. package/dist/services/essentials/transitions.d.ts +1 -1
  70. package/dist/services/index.mjs +3 -3
  71. package/dist/styles.css +35 -11
  72. package/dist/styles.css.map +1 -1
  73. package/dist/styles.min.css +1 -1
  74. package/dist/styles.min.css.map +1 -1
  75. package/dist/umd/bundle.umd.js +85 -0
  76. package/dist/umd/bundle.umd.js.map +1 -0
  77. package/dist/utils/sanitizeHtml.d.ts +3 -0
  78. package/dist/{wordcloud-dqk1DqiP.mjs → wordcloud-XkAQGXwu.mjs} +80 -79
  79. package/dist/wordcloud-XkAQGXwu.mjs.map +1 -0
  80. package/dist/{zoom-OcSt8txb.mjs → zoom-nkwOD6_z.mjs} +6 -4
  81. package/dist/zoom-nkwOD6_z.mjs.map +1 -0
  82. package/package.json +6 -4
  83. package/scss/_chart-wrapper.scss +1 -1
  84. package/scss/_color-palette.scss +8 -8
  85. package/scss/components/_title.scss +1 -1
  86. package/scss/components/_tooltip.scss +6 -2
  87. package/scss/components/toolbar/_buttons.scss +160 -159
  88. package/scss/components/toolbar/_modal.scss +348 -315
  89. package/scss/demos.scss +3 -2
  90. package/scss/graphs/_choropleth.scss +1 -1
  91. package/scss/graphs/_tree.scss +2 -1
  92. package/scss/index.scss +1 -1
  93. package/styles.css +35 -11
  94. package/styles.min.css +1 -1
  95. package/dist/choropleth-cqJq7eSU.mjs.map +0 -1
  96. package/dist/color-scale-utils-bwaA2TiF.mjs.map +0 -1
  97. package/dist/umd/bundle.umd.cjs +0 -84
  98. package/dist/umd/bundle.umd.cjs.map +0 -1
  99. package/dist/wordcloud-dqk1DqiP.mjs.map +0 -1
  100. 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 D3.js, a peer dependency.
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 documentation is provided in the Storybook demos.
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://carbon-design-system.github.io/carbon-charts).
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 the same model for all charts with minor exceptions. For example, in the case of a donut chart, you're able to pass in an additional field called `center` in your options to configure the donut center.
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-bwaA2TiF.mjs";
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-HUN6tK0-.mjs.map
21
+ //# sourceMappingURL=_baseEach-L1oeNjGL.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"_baseEach-HUN6tK0-.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
+ {"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-bwaA2TiF.mjs";
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-32tpV6-P.mjs.map
844
+ //# sourceMappingURL=angle-utils-iPPUNSDt.mjs.map