@carbon/charts-vue 1.5.7 → 1.5.8

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/charts-vue.umd.js CHANGED
@@ -33857,11 +33857,15 @@ var wordcloud_WordCloud = /** @class */ (function (_super) {
33857
33857
  .size([width, height])
33858
33858
  .words(displayData.map(function (d) {
33859
33859
  var _a;
33860
+ var value = d[fontSizeMapsTo];
33861
+ if (typeof d[fontSizeMapsTo] !== 'number') {
33862
+ throw Error('Badly formatted WordCloud data. `value` should only be an integer or float');
33863
+ }
33860
33864
  return _a = {},
33861
33865
  _a[groupMapsTo] = d[groupMapsTo],
33862
33866
  _a.text = d[wordMapsTo],
33863
- _a.size = d[fontSizeMapsTo],
33864
- _a.value = d[fontSizeMapsTo],
33867
+ _a.size = value,
33868
+ _a.value = value,
33865
33869
  _a;
33866
33870
  }))
33867
33871
  .padding(5)