brushX with `values` can shorten the selection range when it’s dragged to the plot edge
维护者通常 1 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- d3, typescript
调研方向
从本仓库中的 brushX 实现开始(搜索显式使用 values 在拖动时对选择端点进行取整的位置),并阅读每个端点是如何独立吸附的。按照链接的 jsfiddle 步骤复现:将一个 3 天的选择拖到绘图边缘,观察它缩小。完成的标志是两个端点都对同一个参照进行取整,从而选择在边缘处保持其宽度,并通过测试或手动检查验证:在反复拖到边缘后范围仍为 2024-01-02..2024-01-04。
由索引模型根据 Issue 内容生成。
描述
When a brushX with explicit values sits over an x domain that extends past its first and last values, dragging the selected range all the way to either edge of the plot may shorten the selected range by one value. Each further drag to an edge can shorten it again. This happens due to independent rounding of the two endpoints.
Reproduction: https://jsfiddle.net/anderskaseorg/ty3hz9m8/
- Open the page. The range is 2024-01-02 to 2024-01-04 (3 days).
- Drag the selection all the way to the left. The range shortens to 2024-01-01 to 2024-01-02 (2 days).
- Drag the selection all the way to the right. The range shortens to 2024-01-05 to 2024-01-05 (1 day).
- 主要语言
- TypeScript
- 星标
- 769
- 派生
- 47
- 平均合并
- 6 小时 9 分钟
- 30 天内合并 PR
- 20
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
TanStack/charts 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 54/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 52/100
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
维护者通常 1 天内回复
相似的 Issue
-
Mondriaan
难度 1/5 1 小时以内 新手友好度 88/100
knaw-huc/textannoviz#709 ·
维护者通常 1 天内回复
-
streams:add
难度 1/5 1 小时以内 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
walletbeat/walletbeat#1558 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
hawk-digital-environments/HAWKI#438 ·
维护者通常 1 天内回复
-
good first issue
难度 2/5 1-3 小时 新手友好度 78/100
OktoLabsAI/okto-pulse#114 ·
维护者通常 1 天内回复