这是到目前为止的代码:
<Chart theme={VictoryTheme.material} width={width} height={height}>
<VictoryBar
style={barStyle}
data={normalizedData}
horizontal
barWidth={({ index }) => index * 20 + 10}
/>
</Chart>
这将Y轴显示在图形的底部。我需要在图的正下方包括另一个小部件,因此我想将Y轴放在顶部,但是我不确定VictoryBar是否对此提供支持。有什么想法吗?