Giter VIP home page Giter VIP logo

Comments (3)

pearmini avatar pearmini commented on June 16, 2024

如下标注看上去会好一点?视觉上就是向两头扩展一下,可能需要处理一下 band scale 的 offset?

image

from g2.

YiSiWang avatar YiSiWang commented on June 16, 2024

@pearmini 实际的场景是需要标注 "xx以上" 或 "xx以下" 的区域。
你的提议是 算出最大/最小的离散值,然后标注 [xx, 最大/最小值]区域,扩展 offset ?
这样也行,但是散点图的比例尺是 point 而不是 band ,而且文档没看到 offset 的配置?

from g2.

YiSiWang avatar YiSiWang commented on June 16, 2024

如果 range 能像 text 支持 dx dy 那样进行偏移,也可以用 style 扩展边界(不是整体的偏移,而是某条边的偏移)
感觉会比动 scale 更合理些🤔

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.