Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

brushX with `values` can shorten the selection range when it’s dragged to the plot edge

未关闭 适合新手
#170 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@andersk 已经在做这个了。

开始于 2026年10月7日。

  • #173 来自 @andersk —— 未关闭

评估

难度
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/

  1. Open the page. The range is 2024-01-02 to 2024-01-04 (3 days).
  2. Drag the selection all the way to the left. The range shortens to 2024-01-01 to 2024-01-02 (2 days).
  3. 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

TanStack/charts 的其他 Issue

查看 TanStack/charts 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。