@carbon/charts-react 0.46.3 → 0.48.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,41 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.48.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.47.0...v0.48.0) (2021-09-10)
7
+
8
+ **Note:** Version bump only for package @carbon/charts-react
9
+
10
+
11
+
12
+
13
+
14
+ # [0.47.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.46.5...v0.47.0) (2021-09-08)
15
+
16
+
17
+ ### Features
18
+
19
+ * **core:** add tree chart ([#1116](https://github.com/carbon-design-system/carbon-charts/issues/1116)) ([96e4988](https://github.com/carbon-design-system/carbon-charts/commit/96e4988d5b3926f2a9daa642c8ebb62058328aa3))
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.46.5](https://github.com/carbon-design-system/carbon-charts/compare/v0.46.4...v0.46.5) (2021-09-08)
26
+
27
+ **Note:** Version bump only for package @carbon/charts-react
28
+
29
+
30
+
31
+
32
+
33
+ ## [0.46.4](https://github.com/carbon-design-system/carbon-charts/compare/v0.46.3...v0.46.4) (2021-08-31)
34
+
35
+ **Note:** Version bump only for package @carbon/charts-react
36
+
37
+
38
+
39
+
40
+
6
41
  ## [0.46.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.46.2...v0.46.3) (2021-08-31)
7
42
 
8
43
  **Note:** Version bump only for package @carbon/charts-react
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 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.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(b);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.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(m);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.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(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.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(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.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(R);var x=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.WordCloudChart=e.CirclePackChart=e.TreemapChart=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 x=r(f);e.SimpleBarChart=x.default;var A=r(s);e.StackedBarChart=A.default;var B=r(l);e.BoxplotChart=B.default;var E=r(h);e.BubbleChart=E.default;var N=r(d);e.BulletChart=N.default;var S=r(_);e.DonutChart=S.default;var g=r(y);e.GaugeChart=g.default;var k=r(v);e.HistogramChart=k.default;var G=r(O);e.LineChart=G.default;var L=r(C);e.LollipopChart=L.default;var T=r(b);e.PieChart=T.default;var H=r(m);e.ScatterChart=H.default;var W=r(j);e.MeterChart=W.default;var q=r(P);e.RadarChart=q.default;var U=r(M);e.ComboChart=U.default;var z=r(w);e.TreemapChart=z.default;var F=r(D);e.CirclePackChart=F.default;var I=r(R);e.WordCloudChart=I.default})),A=n(x),B=x.WordCloudChart,E=x.CirclePackChart,N=x.TreemapChart,S=x.ComboChart,g=x.RadarChart,k=x.MeterChart,G=x.ScatterChart,L=x.PieChart,T=x.LollipopChart,H=x.LineChart,W=x.HistogramChart,q=x.GaugeChart,U=x.DonutChart,z=x.BulletChart,F=x.BubbleChart,I=x.BoxplotChart,J=x.StackedBarChart,K=x.SimpleBarChart,Q=x.GroupedBarChart,V=x.StackedAreaChart,X=x.AreaChart;t.AreaChart=X,t.BoxplotChart=I,t.BubbleChart=F,t.BulletChart=z,t.CirclePackChart=E,t.ComboChart=S,t.DonutChart=U,t.GaugeChart=q,t.GroupedBarChart=Q,t.HistogramChart=W,t.LineChart=H,t.LollipopChart=T,t.MeterChart=k,t.PieChart=L,t.RadarChart=g,t.ScatterChart=G,t.SimpleBarChart=K,t.StackedAreaChart=V,t.StackedBarChart=J,t.TreemapChart=N,t.WordCloudChart=B,t.default=A,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 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 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.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(b);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.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(m);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 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.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(x);var A=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.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 A=r(f);e.SimpleBarChart=A.default;var B=r(s);e.StackedBarChart=B.default;var E=r(l);e.BoxplotChart=E.default;var N=r(h);e.BubbleChart=N.default;var S=r(d);e.BulletChart=S.default;var g=r(_);e.DonutChart=g.default;var k=r(y);e.GaugeChart=k.default;var T=r(v);e.HistogramChart=T.default;var G=r(O);e.LineChart=G.default;var L=r(C);e.LollipopChart=L.default;var H=r(b);e.PieChart=H.default;var W=r(m);e.ScatterChart=W.default;var q=r(j);e.MeterChart=q.default;var U=r(P);e.RadarChart=U.default;var z=r(M);e.ComboChart=z.default;var F=r(w);e.TreeChart=F.default;var I=r(D);e.TreemapChart=I.default;var J=r(R);e.CirclePackChart=J.default;var K=r(x);e.WordCloudChart=K.default})),B=n(A),E=A.WordCloudChart,N=A.CirclePackChart,S=A.TreemapChart,g=A.TreeChart,k=A.ComboChart,T=A.RadarChart,G=A.MeterChart,L=A.ScatterChart,H=A.PieChart,W=A.LollipopChart,q=A.LineChart,U=A.HistogramChart,z=A.GaugeChart,F=A.DonutChart,I=A.BulletChart,J=A.BubbleChart,K=A.BoxplotChart,Q=A.StackedBarChart,V=A.SimpleBarChart,X=A.GroupedBarChart,Y=A.StackedAreaChart,Z=A.AreaChart;t.AreaChart=Z,t.BoxplotChart=K,t.BubbleChart=J,t.BulletChart=I,t.CirclePackChart=N,t.ComboChart=k,t.DonutChart=F,t.GaugeChart=z,t.GroupedBarChart=X,t.HistogramChart=U,t.LineChart=q,t.LollipopChart=W,t.MeterChart=G,t.PieChart=H,t.RadarChart=T,t.ScatterChart=L,t.SimpleBarChart=V,t.StackedAreaChart=Y,t.StackedBarChart=Q,t.TreeChart=g,t.TreemapChart=S,t.WordCloudChart=E,t.default=B,Object.defineProperty(t,"__esModule",{value:!0})}));
package/index.d.ts CHANGED
@@ -16,7 +16,8 @@ import ScatterChart from './scatter-chart';
16
16
  import MeterChart from './meter-chart';
17
17
  import RadarChart from './radar-chart';
18
18
  import ComboChart from './combo-chart';
19
+ import TreeChart from './tree-chart';
19
20
  import TreemapChart from './treemap-chart';
20
21
  import CirclePackChart from './circle-pack-chart';
21
22
  import WordCloudChart from './wordcloud-chart';
22
- export { AreaChart, StackedAreaChart, GroupedBarChart, SimpleBarChart, StackedBarChart, BoxplotChart, BubbleChart, BulletChart, DonutChart, GaugeChart, HistogramChart, LineChart, LollipopChart, PieChart, ScatterChart, MeterChart, RadarChart, ComboChart, TreemapChart, CirclePackChart, WordCloudChart, };
23
+ export { AreaChart, StackedAreaChart, GroupedBarChart, SimpleBarChart, StackedBarChart, BoxplotChart, BubbleChart, BulletChart, DonutChart, GaugeChart, HistogramChart, LineChart, LollipopChart, PieChart, ScatterChart, MeterChart, RadarChart, ComboChart, TreeChart, TreemapChart, CirclePackChart, WordCloudChart, };
package/index.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.WordCloudChart = exports.CirclePackChart = exports.TreemapChart = exports.ComboChart = exports.RadarChart = exports.MeterChart = exports.ScatterChart = exports.PieChart = exports.LollipopChart = exports.LineChart = exports.HistogramChart = exports.GaugeChart = exports.DonutChart = exports.BulletChart = exports.BubbleChart = exports.BoxplotChart = exports.StackedBarChart = exports.SimpleBarChart = exports.GroupedBarChart = exports.StackedAreaChart = exports.AreaChart = void 0;
6
+ exports.WordCloudChart = exports.CirclePackChart = exports.TreemapChart = exports.TreeChart = exports.ComboChart = exports.RadarChart = exports.MeterChart = exports.ScatterChart = exports.PieChart = exports.LollipopChart = exports.LineChart = exports.HistogramChart = exports.GaugeChart = exports.DonutChart = exports.BulletChart = exports.BubbleChart = exports.BoxplotChart = exports.StackedBarChart = exports.SimpleBarChart = exports.GroupedBarChart = exports.StackedAreaChart = exports.AreaChart = void 0;
7
7
  var area_chart_1 = __importDefault(require("./area-chart"));
8
8
  exports.AreaChart = area_chart_1.default;
9
9
  var area_chart_stacked_1 = __importDefault(require("./area-chart-stacked"));
@@ -40,6 +40,8 @@ var radar_chart_1 = __importDefault(require("./radar-chart"));
40
40
  exports.RadarChart = radar_chart_1.default;
41
41
  var combo_chart_1 = __importDefault(require("./combo-chart"));
42
42
  exports.ComboChart = combo_chart_1.default;
43
+ var tree_chart_1 = __importDefault(require("./tree-chart"));
44
+ exports.TreeChart = tree_chart_1.default;
43
45
  var treemap_chart_1 = __importDefault(require("./treemap-chart"));
44
46
  exports.TreemapChart = treemap_chart_1.default;
45
47
  var circle_pack_chart_1 = __importDefault(require("./circle-pack-chart"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbon/charts-react",
3
- "version": "0.46.3",
3
+ "version": "0.48.0",
4
4
  "description": "Carbon charting components for React",
5
5
  "main": "./bundle.js",
6
6
  "module": "./index.js",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "homepage": "https://github.com/carbon-design-system/carbon-charts#readme",
51
51
  "dependencies": {
52
- "@carbon/charts": "^0.46.3",
52
+ "@carbon/charts": "^0.48.0",
53
53
  "@carbon/icons-react": "^10.32.0",
54
54
  "@carbon/telemetry": "0.0.0-alpha.6"
55
55
  },
@@ -0,0 +1,12 @@
1
+ import { TreeChart as TC } from '@carbon/charts';
2
+ import BaseChart from './base-chart';
3
+ import { ChartConfig, TreeChartOptions } from '@carbon/charts/interfaces';
4
+ declare type TreeChartProps = ChartConfig<TreeChartOptions>;
5
+ export default class TreeChart extends BaseChart<TreeChartOptions> {
6
+ chartRef: HTMLDivElement;
7
+ props: TreeChartProps;
8
+ chart: TC;
9
+ componentDidMount(): void;
10
+ render(): JSX.Element;
11
+ }
12
+ export {};
package/tree-chart.js ADDED
@@ -0,0 +1,39 @@
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 TreeChart = /** @class */ (function (_super) {
23
+ __extends(TreeChart, _super);
24
+ function TreeChart() {
25
+ return _super !== null && _super.apply(this, arguments) || this;
26
+ }
27
+ TreeChart.prototype.componentDidMount = function () {
28
+ this.chart = new charts_1.TreeChart(this.chartRef, {
29
+ data: this.props.data,
30
+ options: this.props.options,
31
+ });
32
+ };
33
+ TreeChart.prototype.render = function () {
34
+ var _this = this;
35
+ return (react_1.default.createElement("div", { ref: function (chartRef) { return (_this.chartRef = chartRef); }, className: "chart-holder" }));
36
+ };
37
+ return TreeChart;
38
+ }(base_chart_1.default));
39
+ exports.default = TreeChart;