From dc0d79813b034256235b168c195fa6205acfcb6a Mon Sep 17 00:00:00 2001 From: Joe Hudson Date: Sun, 28 Dec 2014 13:20:36 -0500 Subject: [PATCH] v0.1.1 --- bower.json | 2 +- package.json | 2 +- react-chartjs.js | 125 ++++++++++++++++++++++--------------------- react-chartjs.min.js | 4 +- 4 files changed, 67 insertions(+), 66 deletions(-) diff --git a/bower.json b/bower.json index 7381981..3ed0720 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "react-chartjs", "main": "react-chartjs.js", - "version": "0.1.0", + "version": "0.1.1", "homepage": "https://github.com/jhudson8/react-chartjs", "authors": [ "Joe Hudson " diff --git a/package.json b/package.json index cc3a083..5d36d0a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-chartjs", - "version": "0.1.0", + "version": "0.1.1", "description": "react charting components using the chartjs lib", "main": "index.js", "scripts": { diff --git a/react-chartjs.js b/react-chartjs.js index 38d30d4..cbcabc4 100644 --- a/react-chartjs.js +++ b/react-chartjs.js @@ -1,5 +1,5 @@ /*! - * react-charts v0.1.0 + * react-charts v0.1.1 * https://github.com/jhudson8/react-charts * * @@ -79,14 +79,15 @@ return main; }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } - })(function(Chart) { + })(function(Chart, React) { + __webpack_require__(1).React = React; Chart.React = { - Bar: __webpack_require__(1), - Doughnut: __webpack_require__(2), - Line: __webpack_require__(3), - Pie: __webpack_require__(4), - PolarArea: __webpack_require__(5), - Radar: __webpack_require__(6) + Bar: __webpack_require__(2), + Doughnut: __webpack_require__(3), + Line: __webpack_require__(4), + Pie: __webpack_require__(5), + PolarArea: __webpack_require__(6), + Radar: __webpack_require__(7) }; return Chart; }); @@ -95,60 +96,6 @@ /***/ }, /* 1 */ -/***/ function(module, exports, __webpack_require__) { - - var vars = __webpack_require__(7); - - module.exports = vars.createClass('Bar', ['getBarsAtEvent']); - - -/***/ }, -/* 2 */ -/***/ function(module, exports, __webpack_require__) { - - var vars = __webpack_require__(7); - - module.exports = vars.createClass('Doughnut', ['getSegmentsAtEvent']); - - -/***/ }, -/* 3 */ -/***/ function(module, exports, __webpack_require__) { - - var vars = __webpack_require__(7); - - module.exports = vars.createClass('Line', ['getPointsAtEvent']); - - -/***/ }, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - var vars = __webpack_require__(7); - - module.exports = vars.createClass('Pie', ['getSegmentsAtEvent']); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var vars = __webpack_require__(7); - - module.exports = vars.createClass('PolarArea', ['getSegmentsAtEvent']); - - -/***/ }, -/* 6 */ -/***/ function(module, exports, __webpack_require__) { - - var vars = __webpack_require__(7); - - module.exports = vars.createClass('Radar', ['getPointsAtEvent']); - - -/***/ }, -/* 7 */ /***/ function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(global) {module.exports = { @@ -219,5 +166,59 @@ /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) +/***/ }, +/* 2 */ +/***/ function(module, exports, __webpack_require__) { + + var vars = __webpack_require__(1); + + module.exports = vars.createClass('Bar', ['getBarsAtEvent']); + + +/***/ }, +/* 3 */ +/***/ function(module, exports, __webpack_require__) { + + var vars = __webpack_require__(1); + + module.exports = vars.createClass('Doughnut', ['getSegmentsAtEvent']); + + +/***/ }, +/* 4 */ +/***/ function(module, exports, __webpack_require__) { + + var vars = __webpack_require__(1); + + module.exports = vars.createClass('Line', ['getPointsAtEvent']); + + +/***/ }, +/* 5 */ +/***/ function(module, exports, __webpack_require__) { + + var vars = __webpack_require__(1); + + module.exports = vars.createClass('Pie', ['getSegmentsAtEvent']); + + +/***/ }, +/* 6 */ +/***/ function(module, exports, __webpack_require__) { + + var vars = __webpack_require__(1); + + module.exports = vars.createClass('PolarArea', ['getSegmentsAtEvent']); + + +/***/ }, +/* 7 */ +/***/ function(module, exports, __webpack_require__) { + + var vars = __webpack_require__(1); + + module.exports = vars.createClass('Radar', ['getPointsAtEvent']); + + /***/ } /******/ ]) \ No newline at end of file diff --git a/react-chartjs.min.js b/react-chartjs.min.js index f454cfc..8eb4d8b 100644 --- a/react-chartjs.min.js +++ b/react-chartjs.min.js @@ -1,4 +1,4 @@ /*! - * [react-chartjs](https://github.com/jhudson8/react-chartjs) v0.1.0; MIT license; Joe Hudson + * [react-chartjs](https://github.com/jhudson8/react-chartjs) v0.1.1; MIT license; Joe Hudson */ -!function(t){function e(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return t[r].call(a.exports,a,a.exports,e),a.loaded=!0,a.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){var r,a;!function(n){"function"==typeof Chart?n(Chart):(r=[],a=function(){return n}.apply(e,r),!(void 0!==a&&(t.exports=a)))}(function(t){return t.React={Bar:n(1),Doughnut:n(2),Line:n(3),Pie:n(4),PolarArea:n(5),Radar:n(6)},t})},function(t,e,n){var r=n(7);t.exports=r.createClass("Bar",["getBarsAtEvent"])},function(t,e,n){var r=n(7);t.exports=r.createClass("Doughnut",["getSegmentsAtEvent"])},function(t,e,n){var r=n(7);t.exports=r.createClass("Line",["getPointsAtEvent"])},function(t,e,n){var r=n(7);t.exports=r.createClass("Pie",["getSegmentsAtEvent"])},function(t,e,n){var r=n(7);t.exports=r.createClass("PolarArea",["getSegmentsAtEvent"])},function(t,e,n){var r=n(7);t.exports=r.createClass("Radar",["getPointsAtEvent"])},function(t,e){(function(e){t.exports={createClass:function(t,n){function r(t){a[t]=function(){this.state.chart[name].apply(this.state.chart,arguments)}}var a={displayName:t+"Chart",getInitialState:function(){return{}},render:function(){var t={};for(var e in this.props)this.props.hasOwnProperty(e)&&"data"!==e&&"options"!==e&&(t[e]=this.props[e]);return s.createElement("canvas",t)}},i=["clear","stop","resize","toBase64Image","generateLegend","update","addData","removeData"];if(e.Chart){a.componentDidMount=function(){this.initializeChart(this.props)},a.componentWillUnmount=function(){var t=this.state.chart;t.destroy()},a.componentWillReceiveProps=function(t){var e=this.state.chart;e.destroy(),this.initializeChart(t)},a.initializeChart=function(){var e=this.getDOMNode(),n=e.getContext("2d"),r=new Chart(n)[t](this.props.data,this.props.options||{});this.state.chart=r};var o;for(o=0;o