Giter VIP home page Giter VIP logo

Comments (8)

Runtus avatar Runtus commented on July 19, 2024 1

目前这个功能还没有支持,感兴趣来贡献一下吗?算是 AntV OSCP 的一个中级任务(新的一期)

大佬这个功能现在还有需求吗

from g2.

pearmini avatar pearmini commented on July 19, 2024

目前这个功能还没有支持,感兴趣来贡献一下吗?算是 AntV OSCP 的一个中级任务(新的一期)

from g2.

pearmini avatar pearmini commented on July 19, 2024

from g2.

Runtus avatar Runtus commented on July 19, 2024

好的,还有个问题是,这个需求的配置也是参考问题描述中的截图配置中的TooltipCrosshairs配置项吗?

from g2.

pearmini avatar pearmini commented on July 19, 2024

from g2.

Runtus avatar Runtus commented on July 19, 2024

tooltip 里面已经有相关的配置了,你可以参考一下。发自我的 iPhone在 2024年5月8日,13:35,Runtus @.> 写道: 好的,还有个问题是,这个需求的配置也是参考问题描述中的截图配置中的crosshairs配置项吗? —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.>

大佬,我去官网查阅了下,发现现在Tooltip相关文档的配置(TooltipCfg)和源码中的类型设置不一样,这一块儿是还没有实现吗?
image
目前crosshairs的相关配置是不是都是在interaction的tooltip中配置呀?我看G2Mark下的tooltip是todo的状态,貌似是还没实现😂
image

from g2.

pearmini avatar pearmini commented on July 19, 2024

这个应该是 4.0 的 tooltip 配置,你可以看看 5.0 的配置, 其实就是可以按照下面三种形式配置 tooltip:

chart.interaction("tooltip", {
  crosshairs,
  crosshairsX,
  crosshairsY
});

然后你可以根据 4.0 的配置,按照这个思路去扩展一下 API。

from g2.

Runtus avatar Runtus commented on July 19, 2024

这个应该是 4.0 的 tooltip 配置,你可以看看 5.0 的配置, 其实就是可以按照下面三种形式配置 tooltip:

chart.interaction("tooltip", {
  crosshairs,
  crosshairsX,
  crosshairsY
});

然后你可以根据 4.0 的配置,按照这个思路去扩展一下 API。

好的,感谢大佬,那这个需求我来做下

from g2.

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.