@carbon/charts-react 1.8.0 → 1.9.0-next.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 (131) hide show
  1. package/README.md +15 -21
  2. package/dist/charts/AlluvialChart.d.ts +5 -0
  3. package/dist/charts/AreaChart.d.ts +5 -0
  4. package/dist/charts/BaseChart.d.ts +16 -0
  5. package/dist/charts/BoxplotChart.d.ts +5 -0
  6. package/dist/charts/BubbleChart.d.ts +5 -0
  7. package/dist/charts/BulletChart.d.ts +5 -0
  8. package/dist/charts/ChoroplethChart.d.ts +5 -0
  9. package/dist/charts/CirclePackChart.d.ts +5 -0
  10. package/dist/charts/ComboChart.d.ts +5 -0
  11. package/dist/charts/DonutChart.d.ts +5 -0
  12. package/dist/charts/GaugeChart.d.ts +5 -0
  13. package/dist/charts/GroupedBarChart.d.ts +5 -0
  14. package/dist/charts/HeatmapChart.d.ts +5 -0
  15. package/dist/charts/HistogramChart.d.ts +5 -0
  16. package/dist/charts/LineChart.d.ts +5 -0
  17. package/dist/charts/LollipopChart.d.ts +5 -0
  18. package/dist/charts/MeterChart.d.ts +5 -0
  19. package/dist/charts/PieChart.d.ts +5 -0
  20. package/dist/charts/RadarChart.d.ts +5 -0
  21. package/dist/charts/ScatterChart.d.ts +5 -0
  22. package/dist/charts/SimpleBarChart.d.ts +5 -0
  23. package/dist/charts/StackedAreaChart.d.ts +5 -0
  24. package/dist/charts/StackedBarChart.d.ts +5 -0
  25. package/dist/charts/TreeChart.d.ts +5 -0
  26. package/dist/charts/TreemapChart.d.ts +5 -0
  27. package/dist/charts/WordCloudChart.d.ts +5 -0
  28. package/dist/charts/index.d.ts +26 -0
  29. package/dist/diagrams/CardNode.d.ts +12 -0
  30. package/dist/diagrams/CardNodeColumn.d.ts +7 -0
  31. package/dist/diagrams/CardNodeLabel.d.ts +6 -0
  32. package/dist/diagrams/CardNodeSubtitle.d.ts +6 -0
  33. package/dist/diagrams/CardNodeTitle.d.ts +6 -0
  34. package/dist/diagrams/Edge.d.ts +17 -0
  35. package/dist/diagrams/Marker.d.ts +20 -0
  36. package/dist/diagrams/ShapeNode.d.ts +17 -0
  37. package/dist/diagrams/index.d.ts +9 -0
  38. package/{diagrams/configs.d.ts → dist/diagrams/utils.d.ts} +1 -1
  39. package/dist/index.d.ts +2 -0
  40. package/dist/index.js +114 -0
  41. package/dist/index.js.map +1 -0
  42. package/dist/index.mjs +23083 -0
  43. package/dist/index.mjs.map +1 -0
  44. package/dist/styles.css +28463 -0
  45. package/dist/styles.css.map +1 -0
  46. package/dist/styles.min.css +1 -0
  47. package/dist/styles.min.css.map +1 -0
  48. package/package.json +100 -58
  49. package/CHANGELOG.md +0 -2120
  50. package/alluvial-chart.d.ts +0 -12
  51. package/alluvial-chart.js +0 -42
  52. package/area-chart-stacked.d.ts +0 -12
  53. package/area-chart-stacked.js +0 -42
  54. package/area-chart.d.ts +0 -12
  55. package/area-chart.js +0 -42
  56. package/bar-chart-grouped.d.ts +0 -12
  57. package/bar-chart-grouped.js +0 -42
  58. package/bar-chart-simple.d.ts +0 -12
  59. package/bar-chart-simple.js +0 -42
  60. package/bar-chart-stacked.d.ts +0 -12
  61. package/bar-chart-stacked.js +0 -42
  62. package/base-chart.d.ts +0 -17
  63. package/base-chart.js +0 -46
  64. package/boxplot-chart.d.ts +0 -12
  65. package/boxplot-chart.js +0 -42
  66. package/bubble-chart.d.ts +0 -12
  67. package/bubble-chart.js +0 -42
  68. package/bullet-chart.d.ts +0 -12
  69. package/bullet-chart.js +0 -42
  70. package/bundle.js +0 -1
  71. package/choropleth-chart.d.ts +0 -12
  72. package/choropleth-chart.js +0 -42
  73. package/circle-pack-chart.d.ts +0 -12
  74. package/circle-pack-chart.js +0 -42
  75. package/combo-chart.d.ts +0 -12
  76. package/combo-chart.js +0 -42
  77. package/diagrams/CardNode/CardNode.d.ts +0 -54
  78. package/diagrams/CardNode/CardNode.js +0 -84
  79. package/diagrams/CardNode/CardNodeColumn.d.ts +0 -19
  80. package/diagrams/CardNode/CardNodeColumn.js +0 -37
  81. package/diagrams/CardNode/CardNodeLabel.d.ts +0 -15
  82. package/diagrams/CardNode/CardNodeLabel.js +0 -32
  83. package/diagrams/CardNode/CardNodeSubtitle.d.ts +0 -15
  84. package/diagrams/CardNode/CardNodeSubtitle.js +0 -32
  85. package/diagrams/CardNode/CardNodeTitle.d.ts +0 -15
  86. package/diagrams/CardNode/CardNodeTitle.js +0 -32
  87. package/diagrams/CardNode/index.d.ts +0 -6
  88. package/diagrams/CardNode/index.js +0 -16
  89. package/diagrams/Edge/Edge.d.ts +0 -65
  90. package/diagrams/Edge/Edge.js +0 -94
  91. package/diagrams/Edge/index.d.ts +0 -2
  92. package/diagrams/Edge/index.js +0 -7
  93. package/diagrams/Marker/Marker.d.ts +0 -66
  94. package/diagrams/Marker/Marker.js +0 -120
  95. package/diagrams/Marker/index.d.ts +0 -1
  96. package/diagrams/Marker/index.js +0 -14
  97. package/diagrams/ShapeNode/ShapeNode.d.ts +0 -68
  98. package/diagrams/ShapeNode/ShapeNode.js +0 -101
  99. package/diagrams/ShapeNode/index.d.ts +0 -2
  100. package/diagrams/ShapeNode/index.js +0 -7
  101. package/diagrams/configs.js +0 -4
  102. package/donut-chart.d.ts +0 -12
  103. package/donut-chart.js +0 -42
  104. package/gauge-chart.d.ts +0 -12
  105. package/gauge-chart.js +0 -42
  106. package/heatmap-chart.d.ts +0 -12
  107. package/heatmap-chart.js +0 -42
  108. package/histogram-chart.d.ts +0 -12
  109. package/histogram-chart.js +0 -42
  110. package/index.d.ts +0 -26
  111. package/index.js +0 -56
  112. package/line-chart.d.ts +0 -12
  113. package/line-chart.js +0 -42
  114. package/lollipop-chart.d.ts +0 -12
  115. package/lollipop-chart.js +0 -42
  116. package/meter-chart.d.ts +0 -12
  117. package/meter-chart.js +0 -42
  118. package/pie-chart.d.ts +0 -12
  119. package/pie-chart.js +0 -42
  120. package/radar-chart.d.ts +0 -12
  121. package/radar-chart.js +0 -42
  122. package/scatter-chart.d.ts +0 -12
  123. package/scatter-chart.js +0 -42
  124. package/tree-chart.d.ts +0 -12
  125. package/tree-chart.js +0 -42
  126. package/treemap-chart.d.ts +0 -12
  127. package/treemap-chart.js +0 -42
  128. package/utils.d.ts +0 -1
  129. package/utils.js +0 -9
  130. package/wordcloud-chart.d.ts +0 -12
  131. package/wordcloud-chart.js +0 -42
@@ -1,12 +0,0 @@
1
- import { AlluvialChart as AC } from '@carbon/charts';
2
- import BaseChart from './base-chart';
3
- import { ChartConfig, AlluvialChartOptions } from '@carbon/charts/interfaces';
4
- declare type AlluvialChartProps = ChartConfig<AlluvialChartOptions>;
5
- export default class AlluvialChart extends BaseChart<AlluvialChartOptions> {
6
- chartRef: HTMLDivElement;
7
- props: AlluvialChartProps;
8
- chart: AC;
9
- componentDidMount(): void;
10
- render(): JSX.Element;
11
- }
12
- export {};
package/alluvial-chart.js DELETED
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- var react_1 = __importDefault(require("react"));
20
- var charts_1 = require("@carbon/charts");
21
- var base_chart_1 = __importDefault(require("./base-chart"));
22
- var utils_1 = require("./utils");
23
- var AlluvialChart = /** @class */ (function (_super) {
24
- __extends(AlluvialChart, _super);
25
- function AlluvialChart() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- AlluvialChart.prototype.componentDidMount = function () {
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
- }
35
- };
36
- AlluvialChart.prototype.render = function () {
37
- var _this = this;
38
- return (react_1.default.createElement("div", { ref: function (chartRef) { return (_this.chartRef = chartRef); }, className: "chart-holder" }));
39
- };
40
- return AlluvialChart;
41
- }(base_chart_1.default));
42
- exports.default = AlluvialChart;
@@ -1,12 +0,0 @@
1
- import { StackedAreaChart as SAC } from '@carbon/charts';
2
- import BaseChart from './base-chart';
3
- import { ChartConfig, StackedAreaChartOptions } from '@carbon/charts/interfaces';
4
- declare type StackedAreaChartProps = ChartConfig<StackedAreaChartOptions>;
5
- export default class StackedAreaChart extends BaseChart<StackedAreaChartOptions> {
6
- chartRef: HTMLDivElement;
7
- props: StackedAreaChartProps;
8
- chart: SAC;
9
- componentDidMount(): void;
10
- render(): JSX.Element;
11
- }
12
- export {};
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- var react_1 = __importDefault(require("react"));
20
- var charts_1 = require("@carbon/charts");
21
- var base_chart_1 = __importDefault(require("./base-chart"));
22
- var utils_1 = require("./utils");
23
- var StackedAreaChart = /** @class */ (function (_super) {
24
- __extends(StackedAreaChart, _super);
25
- function StackedAreaChart() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- StackedAreaChart.prototype.componentDidMount = function () {
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
- }
35
- };
36
- StackedAreaChart.prototype.render = function () {
37
- var _this = this;
38
- return (react_1.default.createElement("div", { ref: function (chartRef) { return (_this.chartRef = chartRef); }, className: "chart-holder" }));
39
- };
40
- return StackedAreaChart;
41
- }(base_chart_1.default));
42
- exports.default = StackedAreaChart;
package/area-chart.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import { AreaChart as AC } from '@carbon/charts';
2
- import BaseChart from './base-chart';
3
- import { ChartConfig, AreaChartOptions } from '@carbon/charts/interfaces';
4
- declare type AreaChartProps = ChartConfig<AreaChartOptions>;
5
- export default class AreaChart extends BaseChart<AreaChartOptions> {
6
- chartRef: HTMLDivElement;
7
- props: AreaChartProps;
8
- chart: AC;
9
- componentDidMount(): void;
10
- render(): JSX.Element;
11
- }
12
- export {};
package/area-chart.js DELETED
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- var react_1 = __importDefault(require("react"));
20
- var charts_1 = require("@carbon/charts");
21
- var base_chart_1 = __importDefault(require("./base-chart"));
22
- var utils_1 = require("./utils");
23
- var AreaChart = /** @class */ (function (_super) {
24
- __extends(AreaChart, _super);
25
- function AreaChart() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- AreaChart.prototype.componentDidMount = function () {
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
- }
35
- };
36
- AreaChart.prototype.render = function () {
37
- var _this = this;
38
- return (react_1.default.createElement("div", { ref: function (chartRef) { return (_this.chartRef = chartRef); }, className: "chart-holder" }));
39
- };
40
- return AreaChart;
41
- }(base_chart_1.default));
42
- exports.default = AreaChart;
@@ -1,12 +0,0 @@
1
- import { GroupedBarChart as GBC } from '@carbon/charts';
2
- import BaseChart from './base-chart';
3
- import { ChartConfig, BarChartOptions } from '@carbon/charts/interfaces';
4
- declare type GroupedBarChartProps = ChartConfig<BarChartOptions>;
5
- export default class GroupedBarChart extends BaseChart<BarChartOptions> {
6
- chartRef: HTMLDivElement;
7
- props: GroupedBarChartProps;
8
- chart: GBC;
9
- componentDidMount(): void;
10
- render(): JSX.Element;
11
- }
12
- export {};
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- var react_1 = __importDefault(require("react"));
20
- var charts_1 = require("@carbon/charts");
21
- var base_chart_1 = __importDefault(require("./base-chart"));
22
- var utils_1 = require("./utils");
23
- var GroupedBarChart = /** @class */ (function (_super) {
24
- __extends(GroupedBarChart, _super);
25
- function GroupedBarChart() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- GroupedBarChart.prototype.componentDidMount = function () {
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
- }
35
- };
36
- GroupedBarChart.prototype.render = function () {
37
- var _this = this;
38
- return (react_1.default.createElement("div", { ref: function (chartRef) { return (_this.chartRef = chartRef); }, className: "chart-holder" }));
39
- };
40
- return GroupedBarChart;
41
- }(base_chart_1.default));
42
- exports.default = GroupedBarChart;
@@ -1,12 +0,0 @@
1
- import { SimpleBarChart as SBC } from '@carbon/charts';
2
- import BaseChart from './base-chart';
3
- import { ChartConfig, BarChartOptions } from '@carbon/charts/interfaces';
4
- declare type SimpleBarChartProps = ChartConfig<BarChartOptions>;
5
- export default class SimpleBarChart extends BaseChart<BarChartOptions> {
6
- chartRef: HTMLDivElement;
7
- props: SimpleBarChartProps;
8
- chart: SBC;
9
- componentDidMount(): void;
10
- render(): JSX.Element;
11
- }
12
- export {};
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- var react_1 = __importDefault(require("react"));
20
- var charts_1 = require("@carbon/charts");
21
- var base_chart_1 = __importDefault(require("./base-chart"));
22
- var utils_1 = require("./utils");
23
- var SimpleBarChart = /** @class */ (function (_super) {
24
- __extends(SimpleBarChart, _super);
25
- function SimpleBarChart() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- SimpleBarChart.prototype.componentDidMount = function () {
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
- }
35
- };
36
- SimpleBarChart.prototype.render = function () {
37
- var _this = this;
38
- return (react_1.default.createElement("div", { ref: function (chartRef) { return (_this.chartRef = chartRef); }, className: "chart-holder" }));
39
- };
40
- return SimpleBarChart;
41
- }(base_chart_1.default));
42
- exports.default = SimpleBarChart;
@@ -1,12 +0,0 @@
1
- import { StackedBarChart as SBC } from '@carbon/charts';
2
- import BaseChart from './base-chart';
3
- import { ChartConfig, StackedBarChartOptions } from '@carbon/charts/interfaces';
4
- declare type StackedBarChartProps = ChartConfig<StackedBarChartOptions>;
5
- export default class StackedBarChart extends BaseChart<StackedBarChartOptions> {
6
- chartRef: HTMLDivElement;
7
- props: StackedBarChartProps;
8
- chart: SBC;
9
- componentDidMount(): void;
10
- render(): JSX.Element;
11
- }
12
- export {};
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- var react_1 = __importDefault(require("react"));
20
- var charts_1 = require("@carbon/charts");
21
- var base_chart_1 = __importDefault(require("./base-chart"));
22
- var utils_1 = require("./utils");
23
- var StackedBarChart = /** @class */ (function (_super) {
24
- __extends(StackedBarChart, _super);
25
- function StackedBarChart() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- StackedBarChart.prototype.componentDidMount = function () {
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
- }
35
- };
36
- StackedBarChart.prototype.render = function () {
37
- var _this = this;
38
- return (react_1.default.createElement("div", { ref: function (chartRef) { return (_this.chartRef = chartRef); }, className: "chart-holder" }));
39
- };
40
- return StackedBarChart;
41
- }(base_chart_1.default));
42
- exports.default = StackedBarChart;
package/base-chart.d.ts DELETED
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { Chart as BaseChartType } from '@carbon/charts/chart';
3
- import { ChartTabularData, BaseChartOptions } from '@carbon/charts/interfaces';
4
- declare type Props<Options> = {
5
- options?: Options;
6
- data?: ChartTabularData;
7
- };
8
- export default class BaseChart<Options = BaseChartOptions> extends React.Component<Props<Options>> {
9
- data: ChartTabularData | [];
10
- options: Options | {};
11
- props: Props<Options>;
12
- chart: BaseChartType;
13
- constructor(props: Props<Options>);
14
- shouldComponentUpdate(nextProps: Props<Options>): boolean;
15
- componentDidUpdate(): void;
16
- }
17
- export {};
package/base-chart.js DELETED
@@ -1,46 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- var react_1 = __importDefault(require("react"));
20
- var BaseChart = /** @class */ (function (_super) {
21
- __extends(BaseChart, _super);
22
- function BaseChart(props) {
23
- var _this = _super.call(this, props) || this;
24
- var options = props.options, data = props.data;
25
- if (!options) {
26
- console.error('Missing options!');
27
- }
28
- if (!data) {
29
- console.error('Missing data!');
30
- }
31
- _this.data = props.data || [];
32
- _this.options = props.options || {};
33
- Object.assign(_this, _this.chart);
34
- return _this;
35
- }
36
- BaseChart.prototype.shouldComponentUpdate = function (nextProps) {
37
- return (this.props.data !== nextProps.data ||
38
- this.props.options !== nextProps.options);
39
- };
40
- BaseChart.prototype.componentDidUpdate = function () {
41
- this.chart.model.setData(this.props.data);
42
- this.chart.model.setOptions(this.props.options);
43
- };
44
- return BaseChart;
45
- }(react_1.default.Component));
46
- exports.default = BaseChart;
@@ -1,12 +0,0 @@
1
- import { BoxplotChart as BC } from '@carbon/charts';
2
- import BaseChart from './base-chart';
3
- import { ChartConfig, BoxplotChartOptions } from '@carbon/charts/interfaces';
4
- declare type BoxplotChartProps = ChartConfig<BoxplotChartOptions>;
5
- export default class BoxplotChart extends BaseChart<BoxplotChartOptions> {
6
- chartRef: HTMLDivElement;
7
- props: BoxplotChartProps;
8
- chart: BC;
9
- componentDidMount(): void;
10
- render(): JSX.Element;
11
- }
12
- export {};
package/boxplot-chart.js DELETED
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- var react_1 = __importDefault(require("react"));
20
- var charts_1 = require("@carbon/charts");
21
- var base_chart_1 = __importDefault(require("./base-chart"));
22
- var utils_1 = require("./utils");
23
- var BoxplotChart = /** @class */ (function (_super) {
24
- __extends(BoxplotChart, _super);
25
- function BoxplotChart() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- BoxplotChart.prototype.componentDidMount = function () {
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
- }
35
- };
36
- BoxplotChart.prototype.render = function () {
37
- var _this = this;
38
- return (react_1.default.createElement("div", { ref: function (chartRef) { return (_this.chartRef = chartRef); }, className: "chart-holder" }));
39
- };
40
- return BoxplotChart;
41
- }(base_chart_1.default));
42
- exports.default = BoxplotChart;
package/bubble-chart.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import { BubbleChart as BC } from '@carbon/charts';
2
- import BaseChart from './base-chart';
3
- import { ChartConfig, BubbleChartOptions } from '@carbon/charts/interfaces';
4
- declare type BubbleChartProps = ChartConfig<BubbleChartOptions>;
5
- export default class BubbleChart extends BaseChart<BubbleChartOptions> {
6
- chartRef: HTMLDivElement;
7
- props: BubbleChartProps;
8
- chart: BC;
9
- componentDidMount(): void;
10
- render(): JSX.Element;
11
- }
12
- export {};
package/bubble-chart.js DELETED
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- var react_1 = __importDefault(require("react"));
20
- var charts_1 = require("@carbon/charts");
21
- var base_chart_1 = __importDefault(require("./base-chart"));
22
- var utils_1 = require("./utils");
23
- var BubbleChart = /** @class */ (function (_super) {
24
- __extends(BubbleChart, _super);
25
- function BubbleChart() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- BubbleChart.prototype.componentDidMount = function () {
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
- }
35
- };
36
- BubbleChart.prototype.render = function () {
37
- var _this = this;
38
- return (react_1.default.createElement("div", { ref: function (chartRef) { return (_this.chartRef = chartRef); }, className: "chart-holder" }));
39
- };
40
- return BubbleChart;
41
- }(base_chart_1.default));
42
- exports.default = BubbleChart;
package/bullet-chart.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import { BulletChart as BC } from '@carbon/charts';
2
- import BaseChart from './base-chart';
3
- import { ChartConfig, BulletChartOptions } from '@carbon/charts/interfaces';
4
- declare type BulletChartProps = ChartConfig<BulletChartOptions>;
5
- export default class BulletChart extends BaseChart<BulletChartOptions> {
6
- chartRef: HTMLDivElement;
7
- props: BulletChartProps;
8
- chart: BC;
9
- componentDidMount(): void;
10
- render(): JSX.Element;
11
- }
12
- export {};
package/bullet-chart.js DELETED
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- var react_1 = __importDefault(require("react"));
20
- var charts_1 = require("@carbon/charts");
21
- var base_chart_1 = __importDefault(require("./base-chart"));
22
- var utils_1 = require("./utils");
23
- var BulletChart = /** @class */ (function (_super) {
24
- __extends(BulletChart, _super);
25
- function BulletChart() {
26
- return _super !== null && _super.apply(this, arguments) || this;
27
- }
28
- BulletChart.prototype.componentDidMount = function () {
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
- }
35
- };
36
- BulletChart.prototype.render = function () {
37
- var _this = this;
38
- return (react_1.default.createElement("div", { ref: function (chartRef) { return (_this.chartRef = chartRef); }, className: "chart-holder" }));
39
- };
40
- return BulletChart;
41
- }(base_chart_1.default));
42
- exports.default = BulletChart;
package/bundle.js DELETED
@@ -1 +0,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.cds--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 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.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(R);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.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(w);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.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(D);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.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(B);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 E=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(E);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.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(x);var I=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.EXPERIMENTAL_ChoroplethChart(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(I);var N=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.EXPERIMENTAL_ChoroplethChart=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 N=r(l);e.StackedBarChart=N.default;var z=r(h);e.BoxplotChart=z.default;var S=r(d);e.BubbleChart=S.default;var g=r(_);e.BulletChart=g.default;var T=r(y);e.DonutChart=T.default;var k=r(v);e.GaugeChart=k.default;var L=r(C);e.HistogramChart=L.default;var G=r(O);e.LineChart=G.default;var H=r(m);e.LollipopChart=H.default;var W=r(b);e.PieChart=W.default;var X=r(j);e.ScatterChart=X.default;var q=r(P);e.MeterChart=q.default;var U=r(M);e.RadarChart=U.default;var F=r(R);e.ComboChart=F.default;var J=r(w);e.TreeChart=J.default;var K=r(D);e.TreemapChart=K.default;var Q=r(B);e.CirclePackChart=Q.default;var V=r(A);e.WordCloudChart=V.default;var Y=r(E);e.AlluvialChart=Y.default;var Z=r(x);e.HeatmapChart=Z.default;var $=r(I);e.EXPERIMENTAL_ChoroplethChart=$.default})),z=n(N),S=N.EXPERIMENTAL_ChoroplethChart,g=N.HeatmapChart,T=N.AlluvialChart,k=N.WordCloudChart,L=N.CirclePackChart,G=N.TreemapChart,H=N.TreeChart,W=N.ComboChart,X=N.RadarChart,q=N.MeterChart,U=N.ScatterChart,F=N.PieChart,J=N.LollipopChart,K=N.LineChart,Q=N.HistogramChart,V=N.GaugeChart,Y=N.DonutChart,Z=N.BulletChart,$=N.BubbleChart,tt=N.BoxplotChart,et=N.StackedBarChart,rt=N.SimpleBarChart,ot=N.GroupedBarChart,nt=N.StackedAreaChart,at=N.AreaChart;t.AlluvialChart=T,t.AreaChart=at,t.BoxplotChart=tt,t.BubbleChart=$,t.BulletChart=Z,t.CirclePackChart=L,t.ComboChart=W,t.DonutChart=Y,t.EXPERIMENTAL_ChoroplethChart=S,t.GaugeChart=V,t.GroupedBarChart=ot,t.HeatmapChart=g,t.HistogramChart=Q,t.LineChart=K,t.LollipopChart=J,t.MeterChart=q,t.PieChart=F,t.RadarChart=X,t.ScatterChart=U,t.SimpleBarChart=rt,t.StackedAreaChart=nt,t.StackedBarChart=et,t.TreeChart=H,t.TreemapChart=G,t.WordCloudChart=k,t.default=z,Object.defineProperty(t,"__esModule",{value:!0})}));