这是到目前为止的代码:
<Chart theme={VictoryTheme.material} width={width} height={height}>
<VictoryBar
style={barStyle}
data={normalizedData}
horizontal
barWidth={({ index }) => index * 20 + 10}
/>
</Chart>
这会在图表底部呈现 Y 轴。我需要在图形正下方包含另一个小部件,因此我希望 Y 轴位于顶部,但我不确定 VictoryBar 是否支持此功能。有任何想法吗?