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

Scriptable yAdjust and chartjs-plugin-zoom

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

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript
領域
frontend

調査の方向性

yAdjust と chartjs-plugin-zoom の間の相互作用を再現し、続いて src/elements.js の 93-104 行付近と、レポートで言及されている resolver override を調べます。どのラベル座標が Scriptable 関数に到達するかを追跡し、それらを definition.properties からズーム後に記録された値と比較します。完了条件は、関数がズームされたラベル位置に対応する座標にアクセスできることです。

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

説明

I am using yAdjust to avoid line labels from overlapping, and this is working well until I enable the zoom plugin.

The issue I am running in to is that the Scriptable function is receiving the label's position before the zoom not after. I added console.log(definition.properties); to this part of the code, and it is the x, y value that I need access to.. but this doesn't match the x,y value in to the function context.element.label.x and context.element.label.y

https://github.com/chartjs/chartjs-plugin-annotation/blob/1e95744fb98e6fe9426f8b6a7bd17b1fcdee2f42/src/elements.js#L93-L104

Image

Is there any way to get access to this value? I see it looks like it is overriding the label on the resolver here? but I can't figure out how to get this value... resolver[definition.optionScope].override(definition);

主要言語
JavaScript
スター
625
フォーク
377
平均マージ
1日 9時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

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

chartjs/chartjs-plugin-annotation のほかの issue

chartjs/chartjs-plugin-annotation の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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