Coder Social home page Coder Social logo

Comments (6)

xiaolin3303 avatar xiaolin3303 commented on May 13, 2024

同一页面带有点击事件的view和canvas是什么关系?嵌套?

from wx-charts.

lllsss avatar lllsss commented on May 13, 2024

同一页面带有点击事件的view和canvas的容器view是同级的

from wx-charts.

xiaolin3303 avatar xiaolin3303 commented on May 13, 2024

你描述的情况已经超出了本工具讨论的范围,如果数据都是0饼图确实没有办法显示,点击事件没生效请看一下是否是数据都是0的情况时页面的其他逻辑是否有报错造成的影响,good luck

from wx-charts.

lllsss avatar lllsss commented on May 13, 2024

嗯,我再去查下看看,谢谢。

from wx-charts.

xiaolin3303 avatar xiaolin3303 commented on May 13, 2024

我尝试了你的步骤,确实存在此情况,也没有出现报错情况,可能是微信小程序的一个bug,推荐你这样做,绘制饼图的时候如果数据全为0(这个你可以判断出来)就不要执行

new wxCharts()

同时隐藏canvas

good luck~

from wx-charts.

lllsss avatar lllsss commented on May 13, 2024

不执行new然后隐藏掉canvas就好了。
我之前隐藏的是canvas的容器view。
谢谢。

from wx-charts.

Related Issues (20)

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.