Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン 初心者向け
#170 コメント 0 件 リアクション 0 件 担当者 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分
マージ済み PR(30日)
20

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TanStack/charts のほかの issue

TanStack/charts の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。