如何将图形移动到屏幕左侧?

时间:2021-03-09 14:05:33

标签: react-native

<BarChart
  data={data}
  width={Dimensions.get('window').width}
  height={300}
  chartConfig={{
    backgroundColor: 'white',
    backgroundGradientFrom: 'white',
    backgroundGradientTo: 'white',
    decimalPlaces: 0,
    color: (opacity = 0) => `rgba(90, 90, 90, ${opacity})`,
    style: {borderRadius: 0,},
    propsForBackgroundLines:{stroke:"#ffffff"},
    barRadius: 16,
    fillShadowGradient: 'blue',
    fillShadowGradientOpacity: '5'
  }}
  style={{
    marginVertical: 8,
    borderRadius: 16,
    padding: 5
  }}
  verticalLabelRotation={45}
  withHorizontalLabels={false}
/>

大家好,以上是我的代码以及我的图表的样子。我目前正在使用 react-native-chart-kit。但是,我不知道如何将图形移动到我的左边,因为我不需要 y 轴标签。任何帮助将不胜感激,谢谢。

Application

0 个答案:

没有答案