react-ui: OpenUI Lang ScatterChart ignores xLabel and yLabel

オープン 初心者向け
#1,639 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

2026年11月16日 から。

  • #1657 @udsy19 による — オープン

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

チャートのラッパーは @openuidev/react-ui の genui-lib/Charts/ScatterChart.ts です。隣にある BarChart、LineChart、AreaChart、HorizontalBarChart のラッパーと比較してください。これらは既にラベル用の props をチャートに渡しています。xLabel と yLabel を xAxisLabel と yAxisLabel として渡し、両方のラベルを指定して ScatterChart を描画し、軸ラベルが表示されることを確認してください。軸ラベルが表示され、単体テストでそれがカバーされていれば完了です。報告者がパッチを提案しているので、重複作業を避けるために作業を始める前にメンテナーに確認してください。

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

説明

Describe the bug
The OpenUI Lang ScatterChart in @openuidev/react-ui (openuiLibrary / openuiChatLibrary) declares xLabel and yLabel, and the generated prompt offers them: ScatterChart(datasets: ScatterSeries[], xLabel?: string, yLabel?: string). But genui-lib/Charts/ScatterChart.ts never passes them to the chart, so the axis labels never appear. BarChart, LineChart, AreaChart and HorizontalBarChart all pass theirs.

To Reproduce
Render ScatterChart([ScatterSeries("Players", [Point(180, 75)])], "Height (cm)", "Weight (kg)"). The chart has no axis labels.

Expected behavior
"Height (cm)" and "Weight (kg)" show, as they do for the other cartesian charts.

Additional context
The fix is two lines: pass them as xAxisLabel/yAxisLabel. I have it ready with a unit test and a patch changeset, and can open a PR.

主要言語
TypeScript
スター
10k
フォーク
698
平均マージ
1日 7時間
マージ済み PR(30日)
123

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

thesysdev/openui のほかの issue

thesysdev/openui の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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