【发布时间】:2020-07-22 21:17:42
【问题描述】:
我正在使用胜利图,我大致有以下代码
<VictoryChart domainPadding={30} {...commonProps}>
<VictoryBar
data={props.data}
{...labelProps}
/>
</VictoryChart>
我使用了 tickLabels 样式 {angle: 45},但是这在内部应用于 x 和 y 轴,我只想要 x 轴的倾斜文本,但正如你所看到的,它也影响了 y-轴,我该怎么做?
【问题讨论】:
标签: javascript node.js reactjs react-native victory-charts