|
5 | 5 | Object.defineProperty(exports, "__esModule", { |
6 | 6 | value: true |
7 | 7 | }); |
8 | | -exports.Polar = exports.Radar = exports.HorizontalBar = exports.Bar = exports.Line = exports.Pie = exports.Doughnut = undefined; |
| 8 | +exports.Polar = exports.Radar = exports.HorizontalBar = exports.Bar = exports.Line = exports.Pie = exports.Doughnut = exports.Bubble = undefined; |
9 | 9 |
|
10 | 10 | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); |
11 | 11 |
|
@@ -46,7 +46,7 @@ var ChartComponent = _react2.default.createClass({ |
46 | 46 | onElementsClick: _react.PropTypes.func, |
47 | 47 | options: _react.PropTypes.object, |
48 | 48 | redraw: _react.PropTypes.bool, |
49 | | - type: _react.PropTypes.oneOf(['doughnut', 'pie', 'line', 'bar', 'horizontalBar', 'radar', 'polarArea']), |
| 49 | + type: _react.PropTypes.oneOf(['doughnut', 'pie', 'line', 'bar', 'horizontalBar', 'radar', 'polarArea', 'bubble']), |
50 | 50 | width: _react.PropTypes.number |
51 | 51 | }, |
52 | 52 |
|
@@ -332,6 +332,32 @@ var Polar = exports.Polar = function (_React$Component7) { |
332 | 332 | return Polar; |
333 | 333 | }(_react2.default.Component); |
334 | 334 |
|
| 335 | +var Bubble = exports.Bubble = function (_React$Component8) { |
| 336 | + _inherits(Bubble, _React$Component8); |
| 337 | + |
| 338 | + function Bubble() { |
| 339 | + _classCallCheck(this, Bubble); |
| 340 | + |
| 341 | + return _possibleConstructorReturn(this, (Bubble.__proto__ || Object.getPrototypeOf(Bubble)).apply(this, arguments)); |
| 342 | + } |
| 343 | + |
| 344 | + _createClass(Bubble, [{ |
| 345 | + key: 'render', |
| 346 | + value: function render() { |
| 347 | + var _this16 = this; |
| 348 | + |
| 349 | + return _react2.default.createElement(ChartComponent, _extends({}, this.props, { |
| 350 | + ref: function ref(_ref8) { |
| 351 | + return _this16.chart_instance = _ref8 && _ref8.chart_instance; |
| 352 | + }, |
| 353 | + type: 'bubble' |
| 354 | + })); |
| 355 | + } |
| 356 | + }]); |
| 357 | + |
| 358 | + return Bubble; |
| 359 | +}(_react2.default.Component); |
| 360 | + |
335 | 361 | }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) |
336 | 362 | },{"./utils/deepEqual":2,"chart.js":undefined,"react-dom":undefined}],2:[function(require,module,exports){ |
337 | 363 | 'use strict'; |
|
0 commit comments