0

我创建条形图。我想为 y 轴提供范围,例如当前 y 轴显示 5、10、15、20,但我想要 10、20、30 的范围为 10。我该如何实现?

在此处输入图像描述

   <VictoryAxis
        domain={{y: [0, 30]}}
        dependentAxis
        orientation="left"
        style={{
          tickLabels: {fontSize: 12},
          axis: {stroke: 'transparent'},
        }}
      />
4

0 回答 0