代码之家  ›  专栏  ›  技术社区  ›  Anilkumar iOS Developer

融合图表(bar2d)无法在React Native中滚动

  •  0
  • Anilkumar iOS Developer  · 技术社区  · 7 年前

    它甚至没有启用scrollview(类似于flatlist),而且UI看起来非常不一致,甚至,我试图将scrollview添加到Fusion Chart,但是,它不起作用。因为,视图没有得到扩展,如何启用滚动,或者根据数据如何增加视图高度。

    但是,我的要求是条形图。

    我的输出如下截图, enter image description here

    enter image description here

    我的密码是

    <View style={styles.container} />
    <FusionCharts
      type={type}
      width={width}
      height={height} // given 95%
      dataFormat={dataFormat}
      dataSource={dataSource} //dynamic json data which contains around 30 indexes
      libraryPath={fusionChartPath}
    />
    

    我怎样才能做到这一点?

    0 回复  |  直到 7 年前