import React, { Component } from 'react'; import { Row, Col } from 'antd-v4'; import { getTheme } from '@antv/g2'; import Pie from '../Pie'; class PieGroup extends Component { render() { const { data, height } = this.props; const column = 24 / data.length; const { colors10: colors } = getTheme(); return ( { data.map((child, i) => { const { sId } = child; child.height = height; child.color = colors[i]; return ( ); }) } ); } } export default PieGroup;