33Object . defineProperty ( exports , "__esModule" , {
44 value : true
55} ) ;
6- exports . Polar = exports . Radar = exports . HorizontalBar = exports . Bar = exports . Line = exports . Pie = exports . Doughnut = undefined ;
6+ exports . Polar = exports . Radar = exports . HorizontalBar = exports . Bar = exports . Line = exports . Pie = exports . Doughnut = exports . Bubble = undefined ;
77
88var _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 ; } ; } ( ) ;
99
@@ -44,7 +44,7 @@ var ChartComponent = _react2.default.createClass({
4444 onElementsClick : _react . PropTypes . func ,
4545 options : _react . PropTypes . object ,
4646 redraw : _react . PropTypes . bool ,
47- type : _react . PropTypes . oneOf ( [ 'doughnut' , 'pie' , 'line' , 'bar' , 'horizontalBar' , 'radar' , 'polarArea' ] ) ,
47+ type : _react . PropTypes . oneOf ( [ 'doughnut' , 'pie' , 'line' , 'bar' , 'horizontalBar' , 'radar' , 'polarArea' , 'bubble' ] ) ,
4848 width : _react . PropTypes . number
4949 } ,
5050
@@ -328,4 +328,30 @@ var Polar = exports.Polar = function (_React$Component7) {
328328 } ] ) ;
329329
330330 return Polar ;
331+ } ( _react2 . default . Component ) ;
332+
333+ var Bubble = exports . Bubble = function ( _React$Component8 ) {
334+ _inherits ( Bubble , _React$Component8 ) ;
335+
336+ function Bubble ( ) {
337+ _classCallCheck ( this , Bubble ) ;
338+
339+ return _possibleConstructorReturn ( this , ( Bubble . __proto__ || Object . getPrototypeOf ( Bubble ) ) . apply ( this , arguments ) ) ;
340+ }
341+
342+ _createClass ( Bubble , [ {
343+ key : 'render' ,
344+ value : function render ( ) {
345+ var _this16 = this ;
346+
347+ return _react2 . default . createElement ( ChartComponent , _extends ( { } , this . props , {
348+ ref : function ref ( _ref8 ) {
349+ return _this16 . chart_instance = _ref8 && _ref8 . chart_instance ;
350+ } ,
351+ type : 'bubble'
352+ } ) ) ;
353+ }
354+ } ] ) ;
355+
356+ return Bubble ;
331357} ( _react2 . default . Component ) ;
0 commit comments