Comments (3)
如下标注看上去会好一点?视觉上就是向两头扩展一下,可能需要处理一下 band scale 的 offset?
from g2.
@pearmini 实际的场景是需要标注 "xx以上" 或 "xx以下" 的区域。
你的提议是 算出最大/最小的离散值,然后标注 [xx, 最大/最小值]区域,扩展 offset ?
这样也行,但是散点图的比例尺是 point 而不是 band ,而且文档没看到 offset 的配置?
from g2.
如果 range 能像 text 支持 dx dy 那样进行偏移,也可以用 style 扩展边界(不是整体的偏移,而是某条边的偏移)
感觉会比动 scale 更合理些🤔
from g2.
Related Issues (20)
- 图与图之间的toolTip效果不一致 HOT 1
- antv/g2 使用blob 协议加载worker,这在不允许blob 的环境中会不能正常执行 HOT 1
- 饼图的 labelTransform 需要同时处理重合和超出视口的情况
- 【G2 V5】【条形图、柱状图】配置scrollbar后,来回拖动滚动条时,会经常出现坐标轴刻度值丢失的情况
- 功能需求 HOT 3
- 柱状图转换坐标系后如何让标签文字也进行旋转 HOT 1
- 选中区域太小,怎么让背景也能被hover或者选中? HOT 1
- 【G2 多轴图】多个柱形+一个折线共用横坐标轴,tooltip框内容显示错误
- G2 分类图例支持聚焦能力
- 多view场景tooltip crosshairs展示不全
- G2 官网增加 demo 案例 HOT 4
- G2 圈选数据重新渲染 brush 交互
- 双y轴图表,在点击legend进行交互时会导致渲染异常
- [面积图] 设置 scale/y/domainMin 后 面积溢出到横坐标下方 HOT 1
- legend点击下方图例时图标和后面的关联文本的方法分开
- 有滚动条的柱状图在浏览器尺寸变化后,会导致部分数据未渲染
- 雷达图:给了俩组数据,图例也出来了,可是图只有一个。并且,图例点击关闭一个,另一个显示,都不关闭,只显示一个 HOT 2
- 阶梯折线图转换坐标系后,线条少了一截
- 移动端手指在图表上滑动时,页面无法滚动
- 在S2单元格中绘制G2折线图,当单元格高度偏小时y坐标轴反转
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from g2.