Giter VIP home page Giter VIP logo

Comments (11)

Gk0Wk avatar Gk0Wk commented on July 18, 2024

如何复现呢

from tw-echarts.

oflg avatar oflg commented on July 18, 2024

@linonetwo 代码里加 console 试了下,没有一直刷新打印的现象

from tw-echarts.

linonetwo avatar linonetwo commented on July 18, 2024

打开 https://onetwo.ren/wiki/#:Index 然后用 chrome 的性能面板就可以看到了,我感觉是这个日历图的问题,可能是向 GPU 传送数据消耗了大量 CPU?然后切换到 2023 年再抓就没这么多消耗了

from tw-echarts.

linonetwo avatar linonetwo commented on July 18, 2024

我这问题明显是因为我装了 flowtiwi-sidebar ,会同时显示所有侧边栏 tab 。当然我通过切换这个日历的时间能推测就是 2022 年显示的点太多了之类的,导致了卡顿。

from tw-echarts.

linonetwo avatar linonetwo commented on July 18, 2024

话说这个日历图就不卡,如果不好排查要不换一个图吧,都是在 https://github.com/oflg/fishing-analysis/blob/7e3a846fafda8123e1f01bffc79e63b7ec928bdd/calender/calendar.js#L121 这里定义的吗?

from tw-echarts.

oflg avatar oflg commented on July 18, 2024

这里定义的吗?

是的,我看看容不容易换个

from tw-echarts.

linonetwo avatar linonetwo commented on July 18, 2024

还是比较卡,我看是 echarts 一直在更新导致的,应该是这个图的样式比较消耗性能,还是换个图吧

我用开发者工具看半天也没看出来是为啥导致的更新,可能是 echarts 本身的 bug

from tw-echarts.

oflg avatar oflg commented on July 18, 2024

其他图没办法三个状态(已复习,已到期,未到期)叠加

from tw-echarts.

linonetwo avatar linonetwo commented on July 18, 2024

排查了一下,应该是这个图里这个点一直在动,导致一直没走到中止更新的逻辑

https://user-images.githubusercontent.com/3746270/166631199-2c8bb57d-1723-4db8-8ea2-2ac9d5d71a08.mov
截屏2022-05-04 13 55 28

能不能去掉这个会动的动效?

from tw-echarts.

oflg avatar oflg commented on July 18, 2024

点一直在动

有道理,应该就是这个原因,就去掉

from tw-echarts.

linonetwo avatar linonetwo commented on July 18, 2024

apache/echarts#14326

我本地试了一下,都改成 scatter ,并去掉 effect 等字段就好了

from tw-echarts.

Related Issues (16)

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.