-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from smanousopoulos/master
added babelified src, implemented renderAsImage & fixes
- Loading branch information
Showing
10 changed files
with
1,695 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
'use strict'; | ||
|
||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
|
||
// A convenience wrapper for bar-only charts | ||
|
||
var React = require('react'); | ||
|
||
var Chart = require('./cartesian-chart.js'); | ||
|
||
var BarChart = function BarChart(props) { | ||
return React.createElement(Chart, _extends({}, props, { | ||
series: props.series.map(function (s) { | ||
return _extends({}, s, { type: 'bar' }); | ||
}) | ||
})); | ||
}; | ||
|
||
module.exports = BarChart; |
Oops, something went wrong.