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

Array of tuples data structure not working when parsing is disabled

オープン
#12,232 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@subodhbhyri がすでに取り組んでいます。

2026年5月5日 から。

  • #12250 @subodhbhyri による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
javascript, typescript
領域
frontend

調査の方向性

まず、parsing を無効にした line-chart の tuple データについて、リンクされた TypeScript playground と CodePen のケースを再現します。文書化されている array-of-tuples 形式と、parsing が false の場合に想定される内部形式を比較します。tuple データが型チェックを通り、parsing なしで line が正しく描画されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

type: bug

When switching from an array of objects to an array of tuples on a line chart, I get the following TypeScript error:

Type '[number, number]' is not assignable to type 'number | Point | null'.

Furthermore, with parsing set to false, provided I erase type information through casts to any to skip TypeScript's checks, the line stops being drawn on the chart, so I am unable to apply this recommended performance optimization:

Provide prepared data in the internal format accepted by the dataset and scales, and set parsing: false. See Data structures for more information.

Reproducible sample
chart.js version

v4.5.1

主要言語
JavaScript
スター
67.8k
フォーク
12k
平均マージ
1日 12時間
マージ済み PR(30日)
5

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

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

chartjs/Chart.js のほかの issue

chartjs/Chart.js の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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