diff --git a/bower.json b/bower.json index 94a6268..f54d898 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "react-chartjs", "main": "react-chartjs.js", - "version": "0.1.3", + "version": "0.2.0", "homepage": "https://github.com/jhudson8/react-chartjs", "authors": [ "Joe Hudson " diff --git a/package.json b/package.json index 8b8e3e0..8356ec1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-chartjs", - "version": "0.1.3", + "version": "0.2.0", "description": "react charting components using the chartjs lib", "main": "index.js", "scripts": { diff --git a/react-chartjs.js b/react-chartjs.js index cbcabc4..d9016cf 100644 --- a/react-chartjs.js +++ b/react-chartjs.js @@ -1,3 +1,53 @@ +/*! + * react-charts v0.2.0 + * https://github.com/jhudson8/react-charts + * + * + * Copyright (c) 2014 Joe Hudson + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +/*! + * react-charts v0.1.3 + * https://github.com/jhudson8/react-charts + * + * + * Copyright (c) 2014 Joe Hudson + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ /*! * react-charts v0.1.1 * https://github.com/jhudson8/react-charts diff --git a/react-chartjs.min.js b/react-chartjs.min.js index 8eb4d8b..2b77afb 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.1; MIT license; Joe Hudson + * [react-chartjs](https://github.com/jhudson8/react-chartjs) v0.2.0; 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,e){return n(1).React=e,t.React={Bar:n(2),Doughnut:n(3),Line:n(4),Pie:n(5),PolarArea:n(6),Radar:n(7)},t})},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