@vtex/styleguide
Version:
> VTEX Styleguide React components ([Docs](https://vtex.github.io/styleguide))
62 lines (48 loc) • 2.09 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require("react");
var _react2 = _interopRequireDefault(_react);
var _propTypes = require("prop-types");
var _propTypes2 = _interopRequireDefault(_propTypes);
var _ScatterChart = require("../ScatterChart");
var _ScatterChart2 = _interopRequireDefault(_ScatterChart);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var BubbleChart = function BubbleChart(props) {
return _react2.default.createElement(_ScatterChart2.default, props);
};
BubbleChart.propTypes = {
/** The source data, in which each element is an object. */
data: _propTypes2.default.arrayOf(_propTypes2.default.object).isRequired,
/** The config prop changes some styles of the chart. This prop should be given as an object.*/
config: _propTypes2.default.shape({
xAxis: _propTypes2.default.shape({
axisLine: _propTypes2.default.bool,
tickLine: _propTypes2.default.bool,
tick: _propTypes2.default.bool,
hide: _propTypes2.default.bool
}),
yAxis: _propTypes2.default.shape({
axisLine: _propTypes2.default.bool,
tickLine: _propTypes2.default.bool,
tick: _propTypes2.default.bool,
hide: _propTypes2.default.bool
}),
container: _propTypes2.default.shape({
height: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
width: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number])
}),
grid: _propTypes2.default.shape({
horizontal: _propTypes2.default.bool,
vertical: _propTypes2.default.bool
})
}),
/** The key of x-axis which is corresponding to the data. */
xAxisKey: _propTypes2.default.string.isRequired,
/** The keys of y-axis which is corresponding to the data. */
yAxisKey: _propTypes2.default.string.isRequired,
/** The key of y-axis which is corresponding to the data, it measures size of dot. */
zAxisKey: _propTypes2.default.string.isRequired
};
exports.default = BubbleChart;