Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想像在这个演示中那样对长标签进行自动换行。据说这个 PR支持它,但我无法使用它
<XAxis dataKey="name" interval={0} width={30} label={<Text width={30} />} />
lisamartin00这里有一个例子
她使用了自定义轴刻度:
const CustomizedAxisTick = React.createClass({ render () { const {x, y, payload} = this.props; return <Text x={x} y={y} width={75} textAnchor="middle" verticalAnchor="start">{payload.value}</Text> } });