@carbon/charts-react 0.58.0-latest-carbon-v11-beta.0 → 0.59.0-beta.0

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 (81) hide show
  1. package/.storybook/config.js +0 -2
  2. package/CHANGELOG.md +35 -0
  3. package/dist/CHANGELOG.md +35 -0
  4. package/dist/alluvial-chart.js +7 -4
  5. package/dist/area-chart-stacked.js +7 -4
  6. package/dist/area-chart.js +7 -4
  7. package/dist/bar-chart-grouped.js +7 -4
  8. package/dist/bar-chart-simple.js +7 -4
  9. package/dist/bar-chart-stacked.js +7 -4
  10. package/dist/boxplot-chart.js +7 -4
  11. package/dist/bubble-chart.js +7 -4
  12. package/dist/bullet-chart.js +7 -4
  13. package/dist/bundle.js +1 -1
  14. package/dist/circle-pack-chart.js +7 -4
  15. package/dist/combo-chart.js +7 -4
  16. package/dist/diagrams/CardNode/CardNode.js +3 -4
  17. package/dist/diagrams/CardNode/CardNodeColumn.js +3 -4
  18. package/dist/diagrams/CardNode/CardNodeLabel.js +3 -4
  19. package/dist/diagrams/CardNode/CardNodeSubtitle.js +3 -4
  20. package/dist/diagrams/CardNode/CardNodeTitle.js +3 -4
  21. package/dist/diagrams/Edge/Edge.js +3 -4
  22. package/dist/diagrams/Marker/Marker.js +3 -4
  23. package/dist/diagrams/ShapeNode/ShapeNode.js +3 -4
  24. package/dist/diagrams/configs.d.ts +1 -0
  25. package/dist/diagrams/configs.js +4 -0
  26. package/dist/donut-chart.js +7 -4
  27. package/dist/gauge-chart.js +7 -4
  28. package/dist/heatmap-chart.js +7 -4
  29. package/dist/histogram-chart.js +7 -4
  30. package/dist/line-chart.d.ts +1 -1
  31. package/dist/line-chart.js +7 -4
  32. package/dist/lollipop-chart.d.ts +1 -1
  33. package/dist/lollipop-chart.js +7 -4
  34. package/dist/meter-chart.js +7 -4
  35. package/dist/package.json +7 -7
  36. package/dist/pie-chart.js +7 -4
  37. package/dist/radar-chart.js +7 -4
  38. package/dist/scatter-chart.js +7 -4
  39. package/dist/tree-chart.js +7 -4
  40. package/dist/treemap-chart.js +7 -4
  41. package/dist/utils.d.ts +1 -0
  42. package/dist/utils.js +9 -0
  43. package/dist/wordcloud-chart.js +7 -4
  44. package/package.json +8 -8
  45. package/src/alluvial-chart.tsx +7 -4
  46. package/src/area-chart-stacked.tsx +7 -4
  47. package/src/area-chart.tsx +7 -4
  48. package/src/bar-chart-grouped.tsx +7 -4
  49. package/src/bar-chart-simple.tsx +7 -4
  50. package/src/bar-chart-stacked.tsx +7 -4
  51. package/src/boxplot-chart.tsx +7 -4
  52. package/src/bubble-chart.tsx +7 -4
  53. package/src/bullet-chart.tsx +7 -4
  54. package/src/circle-pack-chart.tsx +7 -4
  55. package/src/combo-chart.tsx +7 -4
  56. package/src/diagrams/CardNode/CardNode.tsx +3 -4
  57. package/src/diagrams/CardNode/CardNodeColumn.tsx +3 -4
  58. package/src/diagrams/CardNode/CardNodeLabel.tsx +3 -4
  59. package/src/diagrams/CardNode/CardNodeSubtitle.tsx +3 -4
  60. package/src/diagrams/CardNode/CardNodeTitle.tsx +3 -4
  61. package/src/diagrams/Edge/Edge.tsx +3 -5
  62. package/src/diagrams/Marker/Marker.tsx +3 -5
  63. package/src/diagrams/ShapeNode/ShapeNode.tsx +3 -5
  64. package/src/diagrams/configs.ts +1 -0
  65. package/src/donut-chart.tsx +7 -4
  66. package/src/gauge-chart.tsx +7 -4
  67. package/src/heatmap-chart.tsx +7 -4
  68. package/src/histogram-chart.tsx +7 -4
  69. package/src/line-chart.tsx +8 -5
  70. package/src/lollipop-chart.tsx +8 -5
  71. package/src/meter-chart.tsx +7 -4
  72. package/src/pie-chart.tsx +7 -4
  73. package/src/radar-chart.tsx +7 -4
  74. package/src/scatter-chart.tsx +7 -4
  75. package/src/tree-chart.tsx +7 -4
  76. package/src/treemap-chart.tsx +7 -4
  77. package/src/utils.ts +7 -0
  78. package/src/wordcloud-chart.tsx +7 -4
  79. package/stories/1_gettingStarted.stories.js +0 -2
  80. package/stories/all.stories.js +21 -10
  81. package/.storybook/theme.js +0 -46
@@ -1,6 +1,5 @@
1
1
  import { configure } from '@storybook/react';
2
2
  import { withOptions } from '@storybook/addon-options';
3
- import theme from './theme';
4
3
 
5
4
  withOptions({
6
5
  name: 'Carbon Charts - React',
@@ -8,7 +7,6 @@ withOptions({
8
7
  showDownPanel: true,
9
8
  showAddonPanel: true,
10
9
  sortStoriesByKind: true,
11
- theme,
12
10
  });
13
11
 
14
12
  // load global styles
package/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
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.58.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.58.0...v0.58.1) (2022-05-19)
7
+
8
+ **Note:** Version bump only for package @carbon/charts-react
9
+
10
+
11
+
12
+
13
+
14
+ # [0.58.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.57.1...v0.58.0) (2022-05-16)
15
+
16
+
17
+ ### Features
18
+
19
+ * **react:** add react 18 as peerDep, update componentDidMount logic for strictmode ([#1364](https://github.com/carbon-design-system/carbon-charts/issues/1364)) ([9af452f](https://github.com/carbon-design-system/carbon-charts/commit/9af452fa0ae63087ec09556fa34cba8c23bc4689))
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.57.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.57.0...v0.57.1) (2022-05-06)
26
+
27
+ **Note:** Version bump only for package @carbon/charts-react
28
+
29
+
30
+
31
+
32
+
33
+ # [0.57.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.56.0...v0.57.0) (2022-04-11)
34
+
35
+ **Note:** Version bump only for package @carbon/charts-react
36
+
37
+
38
+
39
+
40
+
6
41
  # [0.56.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.55.1...v0.56.0) (2022-03-28)
7
42
 
8
43
  **Note:** Version bump only for package @carbon/charts-react
package/dist/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
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.58.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.58.0...v0.58.1) (2022-05-19)
7
+
8
+ **Note:** Version bump only for package @carbon/charts-react
9
+
10
+
11
+
12
+
13
+
14
+ # [0.58.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.57.1...v0.58.0) (2022-05-16)
15
+
16
+
17
+ ### Features
18
+
19
+ * **react:** add react 18 as peerDep, update componentDidMount logic for strictmode ([#1364](https://github.com/carbon-design-system/carbon-charts/issues/1364)) ([9af452f](https://github.com/carbon-design-system/carbon-charts/commit/9af452fa0ae63087ec09556fa34cba8c23bc4689))
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.57.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.57.0...v0.57.1) (2022-05-06)
26
+
27
+ **Note:** Version bump only for package @carbon/charts-react
28
+
29
+
30
+
31
+
32
+
33
+ # [0.57.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.56.0...v0.57.0) (2022-04-11)
34
+
35
+ **Note:** Version bump only for package @carbon/charts-react
36
+
37
+
38
+
39
+
40
+
6
41
  # [0.56.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.55.1...v0.56.0) (2022-03-28)
7
42
 
8
43
  **Note:** Version bump only for package @carbon/charts-react
@@ -19,16 +19,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  var react_1 = __importDefault(require("react"));
20
20
  var charts_1 = require("@carbon/charts");
21
21
  var base_chart_1 = __importDefault(require("./base-chart"));
22
+ var utils_1 = require("./utils");
22
23
  var AlluvialChart = /** @class */ (function (_super) {
23
24
  __extends(AlluvialChart, _super);
24
25
  function AlluvialChart() {
25
26
  return _super !== null && _super.apply(this, arguments) || this;
26
27
  }
27
28
  AlluvialChart.prototype.componentDidMount = function () {
28
- this.chart = new charts_1.AlluvialChart(this.chartRef, {
29
- data: this.props.data,
30
- options: this.props.options,
31
- });
29
+ if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
30
+ this.chart = new charts_1.AlluvialChart(this.chartRef, {
31
+ data: this.props.data,
32
+ options: this.props.options,
33
+ });
34
+ }
32
35
  };
33
36
  AlluvialChart.prototype.render = function () {
34
37
  var _this = this;
@@ -19,16 +19,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  var react_1 = __importDefault(require("react"));
20
20
  var charts_1 = require("@carbon/charts");
21
21
  var base_chart_1 = __importDefault(require("./base-chart"));
22
+ var utils_1 = require("./utils");
22
23
  var StackedAreaChart = /** @class */ (function (_super) {
23
24
  __extends(StackedAreaChart, _super);
24
25
  function StackedAreaChart() {
25
26
  return _super !== null && _super.apply(this, arguments) || this;
26
27
  }
27
28
  StackedAreaChart.prototype.componentDidMount = function () {
28
- this.chart = new charts_1.StackedAreaChart(this.chartRef, {
29
- data: this.props.data,
30
- options: this.props.options,
31
- });
29
+ if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
30
+ this.chart = new charts_1.StackedAreaChart(this.chartRef, {
31
+ data: this.props.data,
32
+ options: this.props.options,
33
+ });
34
+ }
32
35
  };
33
36
  StackedAreaChart.prototype.render = function () {
34
37
  var _this = this;
@@ -19,16 +19,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  var react_1 = __importDefault(require("react"));
20
20
  var charts_1 = require("@carbon/charts");
21
21
  var base_chart_1 = __importDefault(require("./base-chart"));
22
+ var utils_1 = require("./utils");
22
23
  var AreaChart = /** @class */ (function (_super) {
23
24
  __extends(AreaChart, _super);
24
25
  function AreaChart() {
25
26
  return _super !== null && _super.apply(this, arguments) || this;
26
27
  }
27
28
  AreaChart.prototype.componentDidMount = function () {
28
- this.chart = new charts_1.AreaChart(this.chartRef, {
29
- data: this.props.data,
30
- options: this.props.options,
31
- });
29
+ if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
30
+ this.chart = new charts_1.AreaChart(this.chartRef, {
31
+ data: this.props.data,
32
+ options: this.props.options,
33
+ });
34
+ }
32
35
  };
33
36
  AreaChart.prototype.render = function () {
34
37
  var _this = this;
@@ -19,16 +19,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  var react_1 = __importDefault(require("react"));
20
20
  var charts_1 = require("@carbon/charts");
21
21
  var base_chart_1 = __importDefault(require("./base-chart"));
22
+ var utils_1 = require("./utils");
22
23
  var GroupedBarChart = /** @class */ (function (_super) {
23
24
  __extends(GroupedBarChart, _super);
24
25
  function GroupedBarChart() {
25
26
  return _super !== null && _super.apply(this, arguments) || this;
26
27
  }
27
28
  GroupedBarChart.prototype.componentDidMount = function () {
28
- this.chart = new charts_1.GroupedBarChart(this.chartRef, {
29
- data: this.props.data,
30
- options: this.props.options,
31
- });
29
+ if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
30
+ this.chart = new charts_1.GroupedBarChart(this.chartRef, {
31
+ data: this.props.data,
32
+ options: this.props.options,
33
+ });
34
+ }
32
35
  };
33
36
  GroupedBarChart.prototype.render = function () {
34
37
  var _this = this;
@@ -19,16 +19,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  var react_1 = __importDefault(require("react"));
20
20
  var charts_1 = require("@carbon/charts");
21
21
  var base_chart_1 = __importDefault(require("./base-chart"));
22
+ var utils_1 = require("./utils");
22
23
  var SimpleBarChart = /** @class */ (function (_super) {
23
24
  __extends(SimpleBarChart, _super);
24
25
  function SimpleBarChart() {
25
26
  return _super !== null && _super.apply(this, arguments) || this;
26
27
  }
27
28
  SimpleBarChart.prototype.componentDidMount = function () {
28
- this.chart = new charts_1.SimpleBarChart(this.chartRef, {
29
- data: this.props.data,
30
- options: this.props.options,
31
- });
29
+ if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
30
+ this.chart = new charts_1.SimpleBarChart(this.chartRef, {
31
+ data: this.props.data,
32
+ options: this.props.options,
33
+ });
34
+ }
32
35
  };
33
36
  SimpleBarChart.prototype.render = function () {
34
37
  var _this = this;
@@ -19,16 +19,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  var react_1 = __importDefault(require("react"));
20
20
  var charts_1 = require("@carbon/charts");
21
21
  var base_chart_1 = __importDefault(require("./base-chart"));
22
+ var utils_1 = require("./utils");
22
23
  var StackedBarChart = /** @class */ (function (_super) {
23
24
  __extends(StackedBarChart, _super);
24
25
  function StackedBarChart() {
25
26
  return _super !== null && _super.apply(this, arguments) || this;
26
27
  }
27
28
  StackedBarChart.prototype.componentDidMount = function () {
28
- this.chart = new charts_1.StackedBarChart(this.chartRef, {
29
- data: this.props.data,
30
- options: this.props.options,
31
- });
29
+ if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
30
+ this.chart = new charts_1.StackedBarChart(this.chartRef, {
31
+ data: this.props.data,
32
+ options: this.props.options,
33
+ });
34
+ }
32
35
  };
33
36
  StackedBarChart.prototype.render = function () {
34
37
  var _this = this;
@@ -19,16 +19,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  var react_1 = __importDefault(require("react"));
20
20
  var charts_1 = require("@carbon/charts");
21
21
  var base_chart_1 = __importDefault(require("./base-chart"));
22
+ var utils_1 = require("./utils");
22
23
  var BoxplotChart = /** @class */ (function (_super) {
23
24
  __extends(BoxplotChart, _super);
24
25
  function BoxplotChart() {
25
26
  return _super !== null && _super.apply(this, arguments) || this;
26
27
  }
27
28
  BoxplotChart.prototype.componentDidMount = function () {
28
- this.chart = new charts_1.BoxplotChart(this.chartRef, {
29
- data: this.props.data,
30
- options: this.props.options,
31
- });
29
+ if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
30
+ this.chart = new charts_1.BoxplotChart(this.chartRef, {
31
+ data: this.props.data,
32
+ options: this.props.options,
33
+ });
34
+ }
32
35
  };
33
36
  BoxplotChart.prototype.render = function () {
34
37
  var _this = this;
@@ -19,16 +19,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  var react_1 = __importDefault(require("react"));
20
20
  var charts_1 = require("@carbon/charts");
21
21
  var base_chart_1 = __importDefault(require("./base-chart"));
22
+ var utils_1 = require("./utils");
22
23
  var BubbleChart = /** @class */ (function (_super) {
23
24
  __extends(BubbleChart, _super);
24
25
  function BubbleChart() {
25
26
  return _super !== null && _super.apply(this, arguments) || this;
26
27
  }
27
28
  BubbleChart.prototype.componentDidMount = function () {
28
- this.chart = new charts_1.BubbleChart(this.chartRef, {
29
- data: this.props.data,
30
- options: this.props.options,
31
- });
29
+ if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
30
+ this.chart = new charts_1.BubbleChart(this.chartRef, {
31
+ data: this.props.data,
32
+ options: this.props.options,
33
+ });
34
+ }
32
35
  };
33
36
  BubbleChart.prototype.render = function () {
34
37
  var _this = this;
@@ -19,16 +19,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  var react_1 = __importDefault(require("react"));
20
20
  var charts_1 = require("@carbon/charts");
21
21
  var base_chart_1 = __importDefault(require("./base-chart"));
22
+ var utils_1 = require("./utils");
22
23
  var BulletChart = /** @class */ (function (_super) {
23
24
  __extends(BulletChart, _super);
24
25
  function BulletChart() {
25
26
  return _super !== null && _super.apply(this, arguments) || this;
26
27
  }
27
28
  BulletChart.prototype.componentDidMount = function () {
28
- this.chart = new charts_1.BulletChart(this.chartRef, {
29
- data: this.props.data,
30
- options: this.props.options,
31
- });
29
+ if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
30
+ this.chart = new charts_1.BulletChart(this.chartRef, {
31
+ data: this.props.data,
32
+ options: this.props.options,
33
+ });
34
+ }
32
35
  };
33
36
  BulletChart.prototype.render = function () {
34
37
  var _this = this;
package/dist/bundle.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("@carbon/charts")):"function"==typeof define&&define.amd?define(["exports","react","@carbon/charts"],e):e((t=t||self).ChartsReact={},t.React,t.Charts)}(this,(function(t,e,r){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,r=r&&r.hasOwnProperty("default")?r.default:r;var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function a(t,e){return t(e={exports:{}},e.exports),e.exports}var u=a((function(t,r){var n,a=o&&o.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),u=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var i=function(t){function e(e){var r=t.call(this,e)||this,o=e.options,n=e.data;return o||console.error("Missing options!"),n||console.error("Missing data!"),r.data=e.data||[],r.options=e.options||{},Object.assign(r,r.chart),r}return a(e,t),e.prototype.shouldComponentUpdate=function(t){return this.props.data!==t.data||this.props.options!==t.options},e.prototype.componentDidUpdate=function(){this.chart.model.setData(this.props.data),this.chart.model.setOptions(this.props.options)},e}(u(e).default.Component);r.default=i}));n(u);var i=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.AreaChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(i);var c=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.StackedAreaChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(c);var p=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.GroupedBarChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(p);var f=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.SimpleBarChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(f);var s=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.StackedBarChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(s);var l=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.BoxplotChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(l);var h=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.BubbleChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(h);var d=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.BulletChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(d);var _=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.DonutChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(_);var y=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.GaugeChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(y);var v=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.HistogramChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(v);var O=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.LineChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(O);var C=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.LollipopChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(C);var m=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.PieChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(m);var b=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.ScatterChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(b);var j=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.MeterChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(j);var P=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.RadarChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(P);var M=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.ComboChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(M);var w=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.TreeChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(w);var D=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.TreemapChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(D);var R=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.CirclePackChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(R);var A=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.WordCloudChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(A);var x=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.AlluvialChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(x);var B=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.HeatmapChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(B);var E=a((function(t,e){var r=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.HeatmapChart=e.AlluvialChart=e.WordCloudChart=e.CirclePackChart=e.TreemapChart=e.TreeChart=e.ComboChart=e.RadarChart=e.MeterChart=e.ScatterChart=e.PieChart=e.LollipopChart=e.LineChart=e.HistogramChart=e.GaugeChart=e.DonutChart=e.BulletChart=e.BubbleChart=e.BoxplotChart=e.StackedBarChart=e.SimpleBarChart=e.GroupedBarChart=e.StackedAreaChart=e.AreaChart=void 0;var n=r(i);e.AreaChart=n.default;var a=r(c);e.StackedAreaChart=a.default;var u=r(p);e.GroupedBarChart=u.default;var E=r(f);e.SimpleBarChart=E.default;var N=r(s);e.StackedBarChart=N.default;var S=r(l);e.BoxplotChart=S.default;var g=r(h);e.BubbleChart=g.default;var k=r(d);e.BulletChart=k.default;var T=r(_);e.DonutChart=T.default;var G=r(y);e.GaugeChart=G.default;var H=r(v);e.HistogramChart=H.default;var L=r(O);e.LineChart=L.default;var W=r(C);e.LollipopChart=W.default;var q=r(m);e.PieChart=q.default;var U=r(b);e.ScatterChart=U.default;var z=r(j);e.MeterChart=z.default;var F=r(P);e.RadarChart=F.default;var I=r(M);e.ComboChart=I.default;var J=r(w);e.TreeChart=J.default;var K=r(D);e.TreemapChart=K.default;var Q=r(R);e.CirclePackChart=Q.default;var V=r(A);e.WordCloudChart=V.default;var X=r(x);e.AlluvialChart=X.default;var Y=r(B);e.HeatmapChart=Y.default})),N=n(E),S=E.HeatmapChart,g=E.AlluvialChart,k=E.WordCloudChart,T=E.CirclePackChart,G=E.TreemapChart,H=E.TreeChart,L=E.ComboChart,W=E.RadarChart,q=E.MeterChart,U=E.ScatterChart,z=E.PieChart,F=E.LollipopChart,I=E.LineChart,J=E.HistogramChart,K=E.GaugeChart,Q=E.DonutChart,V=E.BulletChart,X=E.BubbleChart,Y=E.BoxplotChart,Z=E.StackedBarChart,$=E.SimpleBarChart,tt=E.GroupedBarChart,et=E.StackedAreaChart,rt=E.AreaChart;t.AlluvialChart=g,t.AreaChart=rt,t.BoxplotChart=Y,t.BubbleChart=X,t.BulletChart=V,t.CirclePackChart=T,t.ComboChart=L,t.DonutChart=Q,t.GaugeChart=K,t.GroupedBarChart=tt,t.HeatmapChart=S,t.HistogramChart=J,t.LineChart=I,t.LollipopChart=F,t.MeterChart=q,t.PieChart=z,t.RadarChart=W,t.ScatterChart=U,t.SimpleBarChart=$,t.StackedAreaChart=et,t.StackedBarChart=Z,t.TreeChart=H,t.TreemapChart=G,t.WordCloudChart=k,t.default=N,Object.defineProperty(t,"__esModule",{value:!0})}));
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("@carbon/charts")):"function"==typeof define&&define.amd?define(["exports","react","@carbon/charts"],e):e((t=t||self).ChartsReact={},t.React,t.Charts)}(this,(function(t,e,r){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,r=r&&r.hasOwnProperty("default")?r.default:r;var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function a(t,e){return t(e={exports:{}},e.exports),e.exports}var i=a((function(t,r){var n,a=o&&o.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:!0});var u=function(t){function e(e){var r=t.call(this,e)||this,o=e.options,n=e.data;return o||console.error("Missing options!"),n||console.error("Missing data!"),r.data=e.data||[],r.options=e.options||{},Object.assign(r,r.chart),r}return a(e,t),e.prototype.shouldComponentUpdate=function(t){return this.props.data!==t.data||this.props.options!==t.options},e.prototype.componentDidUpdate=function(){this.chart.model.setData(this.props.data),this.chart.model.setOptions(this.props.options)},e}(i(e).default.Component);r.default=u}));n(i);var u=a((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.hasChartBeenInitialized=void 0;e.hasChartBeenInitialized=function(t){return!!t.querySelector("div.bx--cc--chart-wrapper")}}));n(u);u.hasChartBeenInitialized;var c=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.AreaChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(c);var p=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.StackedAreaChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(p);var f=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.GroupedBarChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(f);var s=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.SimpleBarChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(s);var l=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.StackedBarChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(l);var h=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.BoxplotChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(h);var d=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.BubbleChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(d);var _=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.BulletChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(_);var y=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.DonutChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(y);var v=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.GaugeChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(v);var C=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.HistogramChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(C);var O=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.LineChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(O);var m=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.LollipopChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(m);var b=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.PieChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(b);var j=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.ScatterChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(j);var P=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.MeterChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(P);var M=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.RadarChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(M);var w=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.ComboChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(w);var R=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.TreeChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(R);var B=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.TreemapChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(B);var D=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.CirclePackChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(D);var A=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.WordCloudChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(A);var x=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.AlluvialChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(x);var z=a((function(t,n){var a,c=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),p=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var f=p(e),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.prototype.componentDidMount=function(){!1===u.hasChartBeenInitialized(this.chartRef)&&(this.chart=new r.HeatmapChart(this.chartRef,{data:this.props.data,options:this.props.options}))},e.prototype.render=function(){var t=this;return f.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(p(i).default);n.default=s}));n(z);var I=a((function(t,e){var r=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.HeatmapChart=e.AlluvialChart=e.WordCloudChart=e.CirclePackChart=e.TreemapChart=e.TreeChart=e.ComboChart=e.RadarChart=e.MeterChart=e.ScatterChart=e.PieChart=e.LollipopChart=e.LineChart=e.HistogramChart=e.GaugeChart=e.DonutChart=e.BulletChart=e.BubbleChart=e.BoxplotChart=e.StackedBarChart=e.SimpleBarChart=e.GroupedBarChart=e.StackedAreaChart=e.AreaChart=void 0;var n=r(c);e.AreaChart=n.default;var a=r(p);e.StackedAreaChart=a.default;var i=r(f);e.GroupedBarChart=i.default;var u=r(s);e.SimpleBarChart=u.default;var I=r(l);e.StackedBarChart=I.default;var E=r(h);e.BoxplotChart=E.default;var N=r(d);e.BubbleChart=N.default;var S=r(_);e.BulletChart=S.default;var g=r(y);e.DonutChart=g.default;var k=r(v);e.GaugeChart=k.default;var T=r(C);e.HistogramChart=T.default;var G=r(O);e.LineChart=G.default;var H=r(m);e.LollipopChart=H.default;var L=r(b);e.PieChart=L.default;var W=r(j);e.ScatterChart=W.default;var q=r(P);e.MeterChart=q.default;var U=r(M);e.RadarChart=U.default;var F=r(w);e.ComboChart=F.default;var J=r(R);e.TreeChart=J.default;var K=r(B);e.TreemapChart=K.default;var Q=r(D);e.CirclePackChart=Q.default;var V=r(A);e.WordCloudChart=V.default;var X=r(x);e.AlluvialChart=X.default;var Y=r(z);e.HeatmapChart=Y.default})),E=n(I),N=I.HeatmapChart,S=I.AlluvialChart,g=I.WordCloudChart,k=I.CirclePackChart,T=I.TreemapChart,G=I.TreeChart,H=I.ComboChart,L=I.RadarChart,W=I.MeterChart,q=I.ScatterChart,U=I.PieChart,F=I.LollipopChart,J=I.LineChart,K=I.HistogramChart,Q=I.GaugeChart,V=I.DonutChart,X=I.BulletChart,Y=I.BubbleChart,Z=I.BoxplotChart,$=I.StackedBarChart,tt=I.SimpleBarChart,et=I.GroupedBarChart,rt=I.StackedAreaChart,ot=I.AreaChart;t.AlluvialChart=S,t.AreaChart=ot,t.BoxplotChart=Z,t.BubbleChart=Y,t.BulletChart=X,t.CirclePackChart=k,t.ComboChart=H,t.DonutChart=V,t.GaugeChart=Q,t.GroupedBarChart=et,t.HeatmapChart=N,t.HistogramChart=K,t.LineChart=J,t.LollipopChart=F,t.MeterChart=W,t.PieChart=U,t.RadarChart=L,t.ScatterChart=q,t.SimpleBarChart=tt,t.StackedAreaChart=rt,t.StackedBarChart=$,t.TreeChart=G,t.TreemapChart=T,t.WordCloudChart=g,t.default=E,Object.defineProperty(t,"__esModule",{value:!0})}));
@@ -19,16 +19,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  var react_1 = __importDefault(require("react"));
20
20
  var charts_1 = require("@carbon/charts");
21
21
  var base_chart_1 = __importDefault(require("./base-chart"));
22
+ var utils_1 = require("./utils");
22
23
  var CirclePackChart = /** @class */ (function (_super) {
23
24
  __extends(CirclePackChart, _super);
24
25
  function CirclePackChart() {
25
26
  return _super !== null && _super.apply(this, arguments) || this;
26
27
  }
27
28
  CirclePackChart.prototype.componentDidMount = function () {
28
- this.chart = new charts_1.CirclePackChart(this.chartRef, {
29
- data: this.props.data,
30
- options: this.props.options,
31
- });
29
+ if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
30
+ this.chart = new charts_1.CirclePackChart(this.chartRef, {
31
+ data: this.props.data,
32
+ options: this.props.options,
33
+ });
34
+ }
32
35
  };
33
36
  CirclePackChart.prototype.render = function () {
34
37
  var _this = this;
@@ -19,16 +19,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  var react_1 = __importDefault(require("react"));
20
20
  var charts_1 = require("@carbon/charts");
21
21
  var base_chart_1 = __importDefault(require("./base-chart"));
22
+ var utils_1 = require("./utils");
22
23
  var ComboChart = /** @class */ (function (_super) {
23
24
  __extends(ComboChart, _super);
24
25
  function ComboChart() {
25
26
  return _super !== null && _super.apply(this, arguments) || this;
26
27
  }
27
28
  ComboChart.prototype.componentDidMount = function () {
28
- this.chart = new charts_1.ComboChart(this.chartRef, {
29
- data: this.props.data,
30
- options: this.props.options,
31
- });
29
+ if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
30
+ this.chart = new charts_1.ComboChart(this.chartRef, {
31
+ data: this.props.data,
32
+ options: this.props.options,
33
+ });
34
+ }
32
35
  };
33
36
  ComboChart.prototype.render = function () {
34
37
  var _this = this;
@@ -7,10 +7,9 @@ var react_1 = __importDefault(require("react"));
7
7
  var prop_types_1 = __importDefault(require("prop-types"));
8
8
  // @ts-ignore
9
9
  var classnames_1 = __importDefault(require("classnames"));
10
- // @ts-ignore
11
- var settings_1 = __importDefault(require("carbon-components/src/globals/js/settings"));
12
- var prefix = settings_1.default.prefix;
13
- var namespace = prefix + "--cc--card-node";
10
+ // Carbon Prefix
11
+ var configs_1 = require("../configs");
12
+ var namespace = configs_1.carbonPrefix + "--cc--card-node";
14
13
  var CardNode = function (_a) {
15
14
  var _b;
16
15
  var _c = _a.as, as = _c === void 0 ? 'div' : _c, children = _a.children, className = _a.className, color = _a.color, _d = _a.href, href = _d === void 0 ? null : _d, _e = _a.onMouseEnter, onMouseEnter = _e === void 0 ? null : _e, _f = _a.onMouseOver, onMouseOver = _f === void 0 ? null : _f, _g = _a.onMouseOut, onMouseOut = _g === void 0 ? null : _g, _h = _a.onMouseLeave, onMouseLeave = _h === void 0 ? null : _h, _j = _a.onMouseMove, onMouseMove = _j === void 0 ? null : _j, _k = _a.onClick, onClick = _k === void 0 ? null : _k, _l = _a.position, position = _l === void 0 ? 'static' : _l, stacked = _a.stacked;
@@ -8,10 +8,9 @@ var react_1 = __importDefault(require("react"));
8
8
  var prop_types_1 = __importDefault(require("prop-types"));
9
9
  // @ts-ignore
10
10
  var classnames_1 = __importDefault(require("classnames"));
11
- // @ts-ignore
12
- var settings_1 = __importDefault(require("carbon-components/src/globals/js/settings"));
13
- var prefix = settings_1.default.prefix;
14
- var namespace = prefix + "--cc--card-node";
11
+ // Carbon Prefix
12
+ var configs_1 = require("../configs");
13
+ var namespace = configs_1.carbonPrefix + "--cc--card-node";
15
14
  var CardNodeColumn = function (_a) {
16
15
  var _b;
17
16
  var children = _a.children, className = _a.className, farsideColumn = _a.farsideColumn;
@@ -8,10 +8,9 @@ var react_1 = __importDefault(require("react"));
8
8
  var prop_types_1 = __importDefault(require("prop-types"));
9
9
  // @ts-ignore
10
10
  var classnames_1 = __importDefault(require("classnames"));
11
- // @ts-ignore
12
- var settings_1 = __importDefault(require("carbon-components/src/globals/js/settings"));
13
- var prefix = settings_1.default.prefix;
14
- var namespace = prefix + "--cc--card-node";
11
+ // Carbon Prefix
12
+ var configs_1 = require("../configs");
13
+ var namespace = configs_1.carbonPrefix + "--cc--card-node";
15
14
  var CardNodeLabel = function (_a) {
16
15
  var _b;
17
16
  var children = _a.children, className = _a.className;
@@ -8,10 +8,9 @@ var react_1 = __importDefault(require("react"));
8
8
  var prop_types_1 = __importDefault(require("prop-types"));
9
9
  // @ts-ignore
10
10
  var classnames_1 = __importDefault(require("classnames"));
11
- // @ts-ignore
12
- var settings_1 = __importDefault(require("carbon-components/src/globals/js/settings"));
13
- var prefix = settings_1.default.prefix;
14
- var namespace = prefix + "--cc--card-node";
11
+ // Carbon Prefix
12
+ var configs_1 = require("../configs");
13
+ var namespace = configs_1.carbonPrefix + "--cc--card-node";
15
14
  var CardNodeSubtitle = function (_a) {
16
15
  var _b;
17
16
  var children = _a.children, className = _a.className;
@@ -8,10 +8,9 @@ var react_1 = __importDefault(require("react"));
8
8
  var prop_types_1 = __importDefault(require("prop-types"));
9
9
  // @ts-ignore
10
10
  var classnames_1 = __importDefault(require("classnames"));
11
- // @ts-ignore
12
- var settings_1 = __importDefault(require("carbon-components/src/globals/js/settings"));
13
- var prefix = settings_1.default.prefix;
14
- var namespace = prefix + "--cc--card-node";
11
+ // Carbon Prefix
12
+ var configs_1 = require("../configs");
13
+ var namespace = configs_1.carbonPrefix + "--cc--card-node";
15
14
  var CardNodeTitle = function (_a) {
16
15
  var _b;
17
16
  var children = _a.children, className = _a.className;
@@ -5,16 +5,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  var react_1 = __importDefault(require("react"));
7
7
  var prop_types_1 = __importDefault(require("prop-types"));
8
- // @ts-ignore
9
- var settings_1 = __importDefault(require("carbon-components/src/globals/js/settings"));
8
+ // Carbon Prefix
9
+ var configs_1 = require("../configs");
10
10
  // @ts-ignore
11
11
  var classnames_1 = __importDefault(require("classnames"));
12
12
  var buildPaths_1 = require("@carbon/charts/components/diagrams/buildPaths");
13
- var prefix = settings_1.default.prefix;
14
13
  var Edge = function (_a) {
15
14
  var _b;
16
15
  var className = _a.className, color = _a.color, markerEnd = _a.markerEnd, markerStart = _a.markerStart, _c = _a.onMouseEnter, onMouseEnter = _c === void 0 ? null : _c, _d = _a.onMouseOver, onMouseOver = _d === void 0 ? null : _d, _e = _a.onMouseOut, onMouseOut = _e === void 0 ? null : _e, _f = _a.onMouseLeave, onMouseLeave = _f === void 0 ? null : _f, _g = _a.onMouseMove, onMouseMove = _g === void 0 ? null : _g, path = _a.path, source = _a.source, target = _a.target, _h = _a.variant, variant = _h === void 0 ? null : _h;
17
- var namespace = prefix + "--cc--edge";
16
+ var namespace = configs_1.carbonPrefix + "--cc--edge";
18
17
  var pathClasses = classnames_1.default(namespace, (_b = {},
19
18
  _b[namespace + "--" + variant] = variant,
20
19
  _b[className] = className,
@@ -30,14 +30,13 @@ var react_1 = __importDefault(require("react"));
30
30
  var prop_types_1 = __importDefault(require("prop-types"));
31
31
  // @ts-ignore
32
32
  var classnames_1 = __importDefault(require("classnames"));
33
- // @ts-ignore
34
- var settings_1 = __importDefault(require("carbon-components/src/globals/js/settings"));
33
+ // Carbon Prefix
34
+ var configs_1 = require("../configs");
35
35
  var markerDefinitions_1 = require("@carbon/charts/components/diagrams/markerDefinitions");
36
- var prefix = settings_1.default.prefix;
37
36
  var Marker = function (_a) {
38
37
  var _b;
39
38
  var className = _a.className, color = _a.color, d = _a.d, id = _a.id, _c = _a.orient, orient = _c === void 0 ? 'auto' : _c, height = _a.height, width = _a.width, _d = _a.position, position = _d === void 0 ? 'end' : _d, refX = _a.refX, refY = _a.refY;
40
- var namespace = prefix + "--cc--marker";
39
+ var namespace = configs_1.carbonPrefix + "--cc--marker";
41
40
  var classes = classnames_1.default(namespace, (_b = {},
42
41
  _b[className] = className,
43
42
  _b));