如何在Victory Native的条形图的顶部放置Y轴?

时间:2020-08-21 11:05:22

标签: react-native victory-charts victory-native

这是到目前为止的代码:

<Chart theme={VictoryTheme.material} width={width} height={height}>
    <VictoryBar
      style={barStyle}
      data={normalizedData}
      horizontal
      barWidth={({ index }) => index * 20 + 10}
    />
  </Chart>

这将Y轴显示在图形的底部。我需要在图的正下方包括另一个小部件,因此我想将Y轴放在顶部,但是我不确定VictoryBar是否对此提供支持。有什么想法吗?

0 个答案:

没有答案