@carbon/charts-react 0.53.3 → 0.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/bundle.js +1 -1
- package/heatmap-chart.d.ts +12 -0
- package/heatmap-chart.js +39 -0
- package/index.d.ts +2 -1
- package/index.js +3 -1
- package/package.json +2 -2
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.54.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.54.0...v0.54.1) (2022-01-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @carbon/charts-react
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [0.54.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.5...v0.54.0) (2021-12-24)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **core:** create heatmap chart ([#1200](https://github.com/carbon-design-system/carbon-charts/issues/1200)) ([a55be0f](https://github.com/carbon-design-system/carbon-charts/commit/a55be0fcec6020b609ab18b2224562aaa9775321))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [0.53.5](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.4...v0.53.5) (2021-12-15)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @carbon/charts-react
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## [0.53.4](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.3...v0.53.4) (2021-12-13)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @carbon/charts-react
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## [0.53.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.2...v0.53.3) (2021-12-07)
|
|
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.TreeChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(w);var D=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.TreemapChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(D);var R=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.CirclePackChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(R);var A=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.WordCloudChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(A);var x=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.AlluvialChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(x);var B=a((function(t,e){var r=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.AlluvialChart=e.WordCloudChart=e.CirclePackChart=e.TreemapChart=e.TreeChart=e.ComboChart=e.RadarChart=e.MeterChart=e.ScatterChart=e.PieChart=e.LollipopChart=e.LineChart=e.HistogramChart=e.GaugeChart=e.DonutChart=e.BulletChart=e.BubbleChart=e.BoxplotChart=e.StackedBarChart=e.SimpleBarChart=e.GroupedBarChart=e.StackedAreaChart=e.AreaChart=void 0;var n=r(i);e.AreaChart=n.default;var a=r(c);e.StackedAreaChart=a.default;var u=r(p);e.GroupedBarChart=u.default;var B=r(f);e.SimpleBarChart=B.default;var E=r(s);e.StackedBarChart=E.default;var N=r(l);e.BoxplotChart=N.default;var S=r(h);e.BubbleChart=S.default;var g=r(d);e.BulletChart=g.default;var k=r(_);e.DonutChart=k.default;var T=r(y);e.GaugeChart=T.default;var G=r(v);e.HistogramChart=G.default;var L=r(O);e.LineChart=L.default;var H=r(C);e.LollipopChart=H.default;var W=r(b);e.PieChart=W.default;var q=r(m);e.ScatterChart=q.default;var U=r(j);e.MeterChart=U.default;var z=r(P);e.RadarChart=z.default;var F=r(M);e.ComboChart=F.default;var I=r(w);e.TreeChart=I.default;var J=r(D);e.TreemapChart=J.default;var K=r(R);e.CirclePackChart=K.default;var Q=r(A);e.WordCloudChart=Q.default;var V=r(x);e.AlluvialChart=V.default})),E=n(B),N=B.AlluvialChart,S=B.WordCloudChart,g=B.CirclePackChart,k=B.TreemapChart,T=B.TreeChart,G=B.ComboChart,L=B.RadarChart,H=B.MeterChart,W=B.ScatterChart,q=B.PieChart,U=B.LollipopChart,z=B.LineChart,F=B.HistogramChart,I=B.GaugeChart,J=B.DonutChart,K=B.BulletChart,Q=B.BubbleChart,V=B.BoxplotChart,X=B.StackedBarChart,Y=B.SimpleBarChart,Z=B.GroupedBarChart,$=B.StackedAreaChart,tt=B.AreaChart;t.AlluvialChart=N,t.AreaChart=tt,t.BoxplotChart=V,t.BubbleChart=Q,t.BulletChart=K,t.CirclePackChart=g,t.ComboChart=G,t.DonutChart=J,t.GaugeChart=I,t.GroupedBarChart=Z,t.HistogramChart=F,t.LineChart=z,t.LollipopChart=U,t.MeterChart=H,t.PieChart=q,t.RadarChart=L,t.ScatterChart=W,t.SimpleBarChart=Y,t.StackedAreaChart=$,t.StackedBarChart=X,t.TreeChart=T,t.TreemapChart=k,t.WordCloudChart=S,t.default=E,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 m=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.PieChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(m);var b=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.ScatterChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(b);var j=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.MeterChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(j);var P=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.RadarChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(P);var M=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.ComboChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(M);var w=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.TreeChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(w);var D=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.TreemapChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(D);var R=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.CirclePackChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(R);var A=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.WordCloudChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(A);var x=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.AlluvialChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(x);var B=a((function(t,n){var a,i=o&&o.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),c=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(n,"__esModule",{value:!0});var p=c(e),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){this.chart=new r.HeatmapChart(this.chartRef,{data:this.props.data,options:this.props.options})},e.prototype.render=function(){var t=this;return p.default.createElement("div",{ref:function(e){return t.chartRef=e},className:"chart-holder"})},e}(c(u).default);n.default=f}));n(B);var E=a((function(t,e){var r=o&&o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.HeatmapChart=e.AlluvialChart=e.WordCloudChart=e.CirclePackChart=e.TreemapChart=e.TreeChart=e.ComboChart=e.RadarChart=e.MeterChart=e.ScatterChart=e.PieChart=e.LollipopChart=e.LineChart=e.HistogramChart=e.GaugeChart=e.DonutChart=e.BulletChart=e.BubbleChart=e.BoxplotChart=e.StackedBarChart=e.SimpleBarChart=e.GroupedBarChart=e.StackedAreaChart=e.AreaChart=void 0;var n=r(i);e.AreaChart=n.default;var a=r(c);e.StackedAreaChart=a.default;var u=r(p);e.GroupedBarChart=u.default;var E=r(f);e.SimpleBarChart=E.default;var N=r(s);e.StackedBarChart=N.default;var S=r(l);e.BoxplotChart=S.default;var g=r(h);e.BubbleChart=g.default;var k=r(d);e.BulletChart=k.default;var T=r(_);e.DonutChart=T.default;var G=r(y);e.GaugeChart=G.default;var H=r(v);e.HistogramChart=H.default;var L=r(O);e.LineChart=L.default;var W=r(C);e.LollipopChart=W.default;var q=r(m);e.PieChart=q.default;var U=r(b);e.ScatterChart=U.default;var z=r(j);e.MeterChart=z.default;var F=r(P);e.RadarChart=F.default;var I=r(M);e.ComboChart=I.default;var J=r(w);e.TreeChart=J.default;var K=r(D);e.TreemapChart=K.default;var Q=r(R);e.CirclePackChart=Q.default;var V=r(A);e.WordCloudChart=V.default;var X=r(x);e.AlluvialChart=X.default;var Y=r(B);e.HeatmapChart=Y.default})),N=n(E),S=E.HeatmapChart,g=E.AlluvialChart,k=E.WordCloudChart,T=E.CirclePackChart,G=E.TreemapChart,H=E.TreeChart,L=E.ComboChart,W=E.RadarChart,q=E.MeterChart,U=E.ScatterChart,z=E.PieChart,F=E.LollipopChart,I=E.LineChart,J=E.HistogramChart,K=E.GaugeChart,Q=E.DonutChart,V=E.BulletChart,X=E.BubbleChart,Y=E.BoxplotChart,Z=E.StackedBarChart,$=E.SimpleBarChart,tt=E.GroupedBarChart,et=E.StackedAreaChart,rt=E.AreaChart;t.AlluvialChart=g,t.AreaChart=rt,t.BoxplotChart=Y,t.BubbleChart=X,t.BulletChart=V,t.CirclePackChart=T,t.ComboChart=L,t.DonutChart=Q,t.GaugeChart=K,t.GroupedBarChart=tt,t.HeatmapChart=S,t.HistogramChart=J,t.LineChart=I,t.LollipopChart=F,t.MeterChart=q,t.PieChart=z,t.RadarChart=W,t.ScatterChart=U,t.SimpleBarChart=$,t.StackedAreaChart=et,t.StackedBarChart=Z,t.TreeChart=H,t.TreemapChart=G,t.WordCloudChart=k,t.default=N,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HeatmapChart as HMC } from '@carbon/charts';
|
|
2
|
+
import BaseChart from './base-chart';
|
|
3
|
+
import { ChartConfig, HeatmapChartOptions } from '@carbon/charts/interfaces';
|
|
4
|
+
declare type HeatmapChartProps = ChartConfig<HeatmapChartOptions>;
|
|
5
|
+
export default class HeatmapChart extends BaseChart<HeatmapChartOptions> {
|
|
6
|
+
chartRef: HTMLDivElement;
|
|
7
|
+
props: HeatmapChartProps;
|
|
8
|
+
chart: HMC;
|
|
9
|
+
componentDidMount(): void;
|
|
10
|
+
render(): JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
package/heatmap-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 HeatmapChart = /** @class */ (function (_super) {
|
|
23
|
+
__extends(HeatmapChart, _super);
|
|
24
|
+
function HeatmapChart() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
HeatmapChart.prototype.componentDidMount = function () {
|
|
28
|
+
this.chart = new charts_1.HeatmapChart(this.chartRef, {
|
|
29
|
+
data: this.props.data,
|
|
30
|
+
options: this.props.options,
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
HeatmapChart.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 HeatmapChart;
|
|
38
|
+
}(base_chart_1.default));
|
|
39
|
+
exports.default = HeatmapChart;
|
package/index.d.ts
CHANGED
|
@@ -21,4 +21,5 @@ import TreemapChart from './treemap-chart';
|
|
|
21
21
|
import CirclePackChart from './circle-pack-chart';
|
|
22
22
|
import WordCloudChart from './wordcloud-chart';
|
|
23
23
|
import AlluvialChart from './alluvial-chart';
|
|
24
|
-
|
|
24
|
+
import HeatmapChart from './heatmap-chart';
|
|
25
|
+
export { AreaChart, StackedAreaChart, GroupedBarChart, SimpleBarChart, StackedBarChart, BoxplotChart, BubbleChart, BulletChart, DonutChart, GaugeChart, HistogramChart, LineChart, LollipopChart, PieChart, ScatterChart, MeterChart, RadarChart, ComboChart, TreeChart, TreemapChart, CirclePackChart, WordCloudChart, AlluvialChart, HeatmapChart, };
|
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.AlluvialChart = 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;
|
|
6
|
+
exports.HeatmapChart = exports.AlluvialChart = 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"));
|
|
@@ -50,3 +50,5 @@ var wordcloud_chart_1 = __importDefault(require("./wordcloud-chart"));
|
|
|
50
50
|
exports.WordCloudChart = wordcloud_chart_1.default;
|
|
51
51
|
var alluvial_chart_1 = __importDefault(require("./alluvial-chart"));
|
|
52
52
|
exports.AlluvialChart = alluvial_chart_1.default;
|
|
53
|
+
var heatmap_chart_1 = __importDefault(require("./heatmap-chart"));
|
|
54
|
+
exports.HeatmapChart = heatmap_chart_1.default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/charts-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.1",
|
|
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.
|
|
52
|
+
"@carbon/charts": "^0.54.1",
|
|
53
53
|
"@carbon/icons-react": "^10.32.0",
|
|
54
54
|
"@carbon/telemetry": "0.0.0-alpha.6"
|
|
55
55
|
},
|