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

Content Wrapping within a box label

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

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

2023年5月17日 から。

  • #890 @stockiNail による — オープン

評価

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

調査の方向性

まず discussion #875 と現在の box-annotation label の挙動を確認してください。issue には source file も test entry point もありません。完了条件は、ボックスの幅が変化すると label text がボックスの端で折り返され、異なる数の X-axis positions にまたがるボックスも含まれることです。

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

説明

enhancement
Discussed in https://github.com/chartjs/chartjs-plugin-annotation/discussions/875

Originally posted by Camology April 13, 2023
Tried to search for others with a similar issue but did not find one, apologies if there is one out there already just point me towards it please.

Basically the goal here is to have my text wrap when used as a label for a box annotation, currently you can split by using the content array which is fine if you have set boundaries, however I have variable width boxes that will be placed when needed for example:

image

When the caution block covers a few spots on the X axis it's fine, but it can theoretically cover just 1 place or all of them, is there a way to adjust the label such that it will wrap text at the edges? I tried using inline SVGs but nothing seemed to function properly.

主要言語
JavaScript
スター
623
フォーク
377
平均マージ
11時間 20分
マージ済み PR(30日)
7

環境構築

はじめの一歩

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

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

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

似ている issue

JavaScript の issue をもっと見る

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

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