Coder Social home page Coder Social logo

Comments (2)

domisolo avatar domisolo commented on September 23, 2024 1

@WangShuXian6 根据实际测试,不管是 4.x 还是 5.x ,饼图还是线图,开发工具还是真机,滚动一切正常

<View>
  <View>
    {Array.from({ length: 30 }, (_, index) => (
      <View className="item">{index + 1}</View>
    ))}
  </View>
  <View style={{ width: "100%", height: "260px" }}>
    <F2Canvas>
      <Chart
        data={data}
        coord={{
          transposed: true,
          type: "polar",
        }}
      >
        <Interval
          x="a"
          y="percent"
          adjust="stack"
          color={{
            field: "name",
            range: [
              "#1890FF",
              "#13C2C2",
              "#2FC25B",
              "#FACC14",
              "#F04864",
              "#8543E0",
            ],
          }}
        />
        <Legend position="right" />
      </Chart>
    </F2Canvas>
  </View>
  <View>
    {Array.from({ length: 30 }, (_, index) => (
      <View className="item">{index + 1}</View>
    ))}
  </View>
</View>

from taro-f2-react.

WangShuXian6 avatar WangShuXian6 commented on September 23, 2024

怎么解决 页面滚动图表不会随着滚动 的?

虽然只是微信开发工具上图表不随页面滚动。
真机测试是没问题的,图表会随页面滚动。

from taro-f2-react.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.