Content Wrapping within a box label
評価
- 難易度
- 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 の本文から書いたものです。
説明
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:

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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
chartjs/chartjs-plugin-annotation のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
TypeScript type issues対応中かも @joshkel が 439 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
chartjs/chartjs-plugin-annotation の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
`yarn vitest:update` (documented) throws locally; local Cypress scripts target an unserved portオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
rescript-lang/rescript-lang.org#1415 ·
メンテナーはふだん 2 日以内に返信
-
[Bug]: agent capture drops long Unicode text as punctuation対応中かも @ktz03 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
volcengine/OpenViking#5801 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
Deepak3699/Ai_Mentor#244 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nextcloud/collectives#2843 ·
メンテナーはふだん 1 日以内に返信