@carbon/charts-react 0.57.1 → 0.58.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/alluvial-chart.js +7 -4
- package/area-chart-stacked.js +7 -4
- package/area-chart.js +7 -4
- package/bar-chart-grouped.js +7 -4
- package/bar-chart-simple.js +7 -4
- package/bar-chart-stacked.js +7 -4
- package/boxplot-chart.js +7 -4
- package/bubble-chart.js +7 -4
- package/bullet-chart.js +7 -4
- package/bundle.js +1 -1
- package/circle-pack-chart.js +7 -4
- package/combo-chart.js +7 -4
- package/donut-chart.js +7 -4
- package/gauge-chart.js +7 -4
- package/heatmap-chart.js +7 -4
- package/histogram-chart.js +7 -4
- package/line-chart.d.ts +1 -1
- package/line-chart.js +7 -4
- package/lollipop-chart.d.ts +1 -1
- package/lollipop-chart.js +7 -4
- package/meter-chart.js +7 -4
- package/package.json +6 -6
- package/pie-chart.js +7 -4
- package/radar-chart.js +7 -4
- package/scatter-chart.js +7 -4
- package/tree-chart.js +7 -4
- package/treemap-chart.js +7 -4
- package/utils.d.ts +1 -0
- package/utils.js +9 -0
- package/wordcloud-chart.js +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
|
|
6
25
|
## [0.57.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.57.0...v0.57.1) (2022-05-06)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @carbon/charts-react
|
package/alluvial-chart.js
CHANGED
|
@@ -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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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;
|
package/area-chart-stacked.js
CHANGED
|
@@ -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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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;
|
package/area-chart.js
CHANGED
|
@@ -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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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;
|
package/bar-chart-grouped.js
CHANGED
|
@@ -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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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;
|
package/bar-chart-simple.js
CHANGED
|
@@ -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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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;
|
package/bar-chart-stacked.js
CHANGED
|
@@ -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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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;
|
package/boxplot-chart.js
CHANGED
|
@@ -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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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;
|
package/bubble-chart.js
CHANGED
|
@@ -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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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;
|
package/bullet-chart.js
CHANGED
|
@@ -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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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/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})}));
|
package/circle-pack-chart.js
CHANGED
|
@@ -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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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;
|
package/combo-chart.js
CHANGED
|
@@ -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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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;
|
package/donut-chart.js
CHANGED
|
@@ -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 DonutChart = /** @class */ (function (_super) {
|
|
23
24
|
__extends(DonutChart, _super);
|
|
24
25
|
function DonutChart() {
|
|
25
26
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
27
|
}
|
|
27
28
|
DonutChart.prototype.componentDidMount = function () {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
|
|
30
|
+
this.chart = new charts_1.DonutChart(this.chartRef, {
|
|
31
|
+
data: this.props.data,
|
|
32
|
+
options: this.props.options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
32
35
|
};
|
|
33
36
|
DonutChart.prototype.render = function () {
|
|
34
37
|
var _this = this;
|
package/gauge-chart.js
CHANGED
|
@@ -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 GaugeChart = /** @class */ (function (_super) {
|
|
23
24
|
__extends(GaugeChart, _super);
|
|
24
25
|
function GaugeChart() {
|
|
25
26
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
27
|
}
|
|
27
28
|
GaugeChart.prototype.componentDidMount = function () {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
|
|
30
|
+
this.chart = new charts_1.GaugeChart(this.chartRef, {
|
|
31
|
+
data: this.props.data,
|
|
32
|
+
options: this.props.options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
32
35
|
};
|
|
33
36
|
GaugeChart.prototype.render = function () {
|
|
34
37
|
var _this = this;
|
package/heatmap-chart.js
CHANGED
|
@@ -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 HeatmapChart = /** @class */ (function (_super) {
|
|
23
24
|
__extends(HeatmapChart, _super);
|
|
24
25
|
function HeatmapChart() {
|
|
25
26
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
27
|
}
|
|
27
28
|
HeatmapChart.prototype.componentDidMount = function () {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
|
|
30
|
+
this.chart = new charts_1.HeatmapChart(this.chartRef, {
|
|
31
|
+
data: this.props.data,
|
|
32
|
+
options: this.props.options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
32
35
|
};
|
|
33
36
|
HeatmapChart.prototype.render = function () {
|
|
34
37
|
var _this = this;
|
package/histogram-chart.js
CHANGED
|
@@ -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 HistogramChart = /** @class */ (function (_super) {
|
|
23
24
|
__extends(HistogramChart, _super);
|
|
24
25
|
function HistogramChart() {
|
|
25
26
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
27
|
}
|
|
27
28
|
HistogramChart.prototype.componentDidMount = function () {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
|
|
30
|
+
this.chart = new charts_1.HistogramChart(this.chartRef, {
|
|
31
|
+
data: this.props.data,
|
|
32
|
+
options: this.props.options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
32
35
|
};
|
|
33
36
|
HistogramChart.prototype.render = function () {
|
|
34
37
|
var _this = this;
|
package/line-chart.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ChartConfig, LineChartOptions } from '@carbon/charts/interfaces';
|
|
|
3
3
|
import BaseChart from './base-chart';
|
|
4
4
|
declare type LineChartProps = ChartConfig<LineChartOptions>;
|
|
5
5
|
export default class LineChart extends BaseChart<LineChartOptions> {
|
|
6
|
-
chartRef
|
|
6
|
+
chartRef: HTMLDivElement;
|
|
7
7
|
props: LineChartProps;
|
|
8
8
|
chart: LC;
|
|
9
9
|
componentDidMount(): void;
|
package/line-chart.js
CHANGED
|
@@ -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 LineChart = /** @class */ (function (_super) {
|
|
23
24
|
__extends(LineChart, _super);
|
|
24
25
|
function LineChart() {
|
|
25
26
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
27
|
}
|
|
27
28
|
LineChart.prototype.componentDidMount = function () {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
|
|
30
|
+
this.chart = new charts_1.LineChart(this.chartRef, {
|
|
31
|
+
data: this.props.data,
|
|
32
|
+
options: this.props.options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
32
35
|
};
|
|
33
36
|
LineChart.prototype.render = function () {
|
|
34
37
|
var _this = this;
|
package/lollipop-chart.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ChartConfig, LollipopChartOptions } from '@carbon/charts/interfaces';
|
|
|
3
3
|
import BaseChart from './base-chart';
|
|
4
4
|
declare type LollipopChartProps = ChartConfig<LollipopChartOptions>;
|
|
5
5
|
export default class LollipopChart extends BaseChart<LollipopChartOptions> {
|
|
6
|
-
chartRef
|
|
6
|
+
chartRef: HTMLDivElement;
|
|
7
7
|
props: LollipopChartProps;
|
|
8
8
|
chart: LC;
|
|
9
9
|
componentDidMount(): void;
|
package/lollipop-chart.js
CHANGED
|
@@ -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 LollipopChart = /** @class */ (function (_super) {
|
|
23
24
|
__extends(LollipopChart, _super);
|
|
24
25
|
function LollipopChart() {
|
|
25
26
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
27
|
}
|
|
27
28
|
LollipopChart.prototype.componentDidMount = function () {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
|
|
30
|
+
this.chart = new charts_1.LollipopChart(this.chartRef, {
|
|
31
|
+
data: this.props.data,
|
|
32
|
+
options: this.props.options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
32
35
|
};
|
|
33
36
|
LollipopChart.prototype.render = function () {
|
|
34
37
|
var _this = this;
|
package/meter-chart.js
CHANGED
|
@@ -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 MeterChart = /** @class */ (function (_super) {
|
|
23
24
|
__extends(MeterChart, _super);
|
|
24
25
|
function MeterChart() {
|
|
25
26
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
27
|
}
|
|
27
28
|
MeterChart.prototype.componentDidMount = function () {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
|
|
30
|
+
this.chart = new charts_1.MeterChart(this.chartRef, {
|
|
31
|
+
data: this.props.data,
|
|
32
|
+
options: this.props.options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
32
35
|
};
|
|
33
36
|
MeterChart.prototype.render = function () {
|
|
34
37
|
var _this = this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/charts-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.58.1",
|
|
4
4
|
"description": "Carbon charting components for React",
|
|
5
5
|
"main": "./bundle.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
},
|
|
50
50
|
"homepage": "https://github.com/carbon-design-system/carbon-charts#readme",
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@carbon/charts": "^0.
|
|
53
|
-
"@carbon/icons-react": "^10.
|
|
54
|
-
"@carbon/telemetry": "0.
|
|
52
|
+
"@carbon/charts": "^0.58.1",
|
|
53
|
+
"@carbon/icons-react": "^10.49.0",
|
|
54
|
+
"@carbon/telemetry": "0.1.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"react": "^16.0.0 || ^17.0.0",
|
|
58
|
-
"react-dom": "^16.0.0 || ^17.0.0"
|
|
57
|
+
"react": "^16.0.0 || ^17.0.0 || ^18.0.0",
|
|
58
|
+
"react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@storybook/addon-knobs": "5.3.12",
|
package/pie-chart.js
CHANGED
|
@@ -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 PieChart = /** @class */ (function (_super) {
|
|
23
24
|
__extends(PieChart, _super);
|
|
24
25
|
function PieChart() {
|
|
25
26
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
27
|
}
|
|
27
28
|
PieChart.prototype.componentDidMount = function () {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
|
|
30
|
+
this.chart = new charts_1.PieChart(this.chartRef, {
|
|
31
|
+
data: this.props.data,
|
|
32
|
+
options: this.props.options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
32
35
|
};
|
|
33
36
|
PieChart.prototype.render = function () {
|
|
34
37
|
var _this = this;
|
package/radar-chart.js
CHANGED
|
@@ -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 RadarChart = /** @class */ (function (_super) {
|
|
23
24
|
__extends(RadarChart, _super);
|
|
24
25
|
function RadarChart() {
|
|
25
26
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
27
|
}
|
|
27
28
|
RadarChart.prototype.componentDidMount = function () {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
|
|
30
|
+
this.chart = new charts_1.RadarChart(this.chartRef, {
|
|
31
|
+
data: this.props.data,
|
|
32
|
+
options: this.props.options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
32
35
|
};
|
|
33
36
|
RadarChart.prototype.render = function () {
|
|
34
37
|
var _this = this;
|
package/scatter-chart.js
CHANGED
|
@@ -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 ScatterChart = /** @class */ (function (_super) {
|
|
23
24
|
__extends(ScatterChart, _super);
|
|
24
25
|
function ScatterChart() {
|
|
25
26
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
27
|
}
|
|
27
28
|
ScatterChart.prototype.componentDidMount = function () {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
|
|
30
|
+
this.chart = new charts_1.ScatterChart(this.chartRef, {
|
|
31
|
+
data: this.props.data,
|
|
32
|
+
options: this.props.options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
32
35
|
};
|
|
33
36
|
ScatterChart.prototype.render = function () {
|
|
34
37
|
var _this = this;
|
package/tree-chart.js
CHANGED
|
@@ -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 TreeChart = /** @class */ (function (_super) {
|
|
23
24
|
__extends(TreeChart, _super);
|
|
24
25
|
function TreeChart() {
|
|
25
26
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
27
|
}
|
|
27
28
|
TreeChart.prototype.componentDidMount = function () {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
|
|
30
|
+
this.chart = new charts_1.TreeChart(this.chartRef, {
|
|
31
|
+
data: this.props.data,
|
|
32
|
+
options: this.props.options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
32
35
|
};
|
|
33
36
|
TreeChart.prototype.render = function () {
|
|
34
37
|
var _this = this;
|
package/treemap-chart.js
CHANGED
|
@@ -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 TreemapChart = /** @class */ (function (_super) {
|
|
23
24
|
__extends(TreemapChart, _super);
|
|
24
25
|
function TreemapChart() {
|
|
25
26
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
27
|
}
|
|
27
28
|
TreemapChart.prototype.componentDidMount = function () {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
|
|
30
|
+
this.chart = new charts_1.TreemapChart(this.chartRef, {
|
|
31
|
+
data: this.props.data,
|
|
32
|
+
options: this.props.options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
32
35
|
};
|
|
33
36
|
TreemapChart.prototype.render = function () {
|
|
34
37
|
var _this = this;
|
package/utils.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const hasChartBeenInitialized: (chartHolder: HTMLElement) => boolean;
|
package/utils.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hasChartBeenInitialized = void 0;
|
|
4
|
+
var carbonPrefix = 'bx';
|
|
5
|
+
var chartsPrefix = 'cc';
|
|
6
|
+
var hasChartBeenInitialized = function (chartHolder) {
|
|
7
|
+
return !!chartHolder.querySelector("div." + carbonPrefix + "--" + chartsPrefix + "--chart-wrapper");
|
|
8
|
+
};
|
|
9
|
+
exports.hasChartBeenInitialized = hasChartBeenInitialized;
|
package/wordcloud-chart.js
CHANGED
|
@@ -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 WordCloudChart = /** @class */ (function (_super) {
|
|
23
24
|
__extends(WordCloudChart, _super);
|
|
24
25
|
function WordCloudChart() {
|
|
25
26
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
27
|
}
|
|
27
28
|
WordCloudChart.prototype.componentDidMount = function () {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
if (utils_1.hasChartBeenInitialized(this.chartRef) === false) {
|
|
30
|
+
this.chart = new charts_1.WordCloudChart(this.chartRef, {
|
|
31
|
+
data: this.props.data,
|
|
32
|
+
options: this.props.options,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
32
35
|
};
|
|
33
36
|
WordCloudChart.prototype.render = function () {
|
|
34
37
|
var _this = this;
|