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

[Feature] Scene: an HTML / `foreignObject` node for per-datum icons and badges

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
react, typescript

調査の方向性

Start with the SceneNode definitions in packages/charts-core/src/types.ts and the renderSvg implementation mentioned in the issue. Trace how scene nodes are rendered and how layout, clipping, and enter/exit motion are handled. Done means choosing and documenting a supported way to render per-datum HTML or foreignObject content with the described layout and motion behavior.

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

説明

A chart that needs a per-datum icon, badge or other HTML inside the plot has no scene node for it.

  • SceneNode is group | rule | polyline | area | dot | rect | label (types.ts:1599-1606). None embeds HTML or foreign content, and foreignObject is not emitted anywhere in charts-core.
  • SceneLabel carries a plain text: string (types.ts:1582-1586).
  • The only HTML slots are the tooltip body and the tooltip portal extension (types.ts:1666). Neither follows the scene's layout, clipping or enter/exit motion.

Use case: marker discs on a time-series chart, each holding a caller-supplied icon (an SVG or React element), sized to fill the disc or inset from it. Today the icon can only be drawn as label text, so element icons cannot be shown.

Repro

Nothing to run; this is an absence. A mark that emits a SceneNode with kind: 'html' (or any non-listed kind) is not part of the type, and renderSvg has no branch for it.

Proposal

Either:

  1. A scene node that hosts HTML or foreignObject content (position, size, a child), rendered by the SVG renderer and skipped or rasterised by canvas; or
  2. a documented custom-renderer slot for per-datum HTML that receives the resolved layout and takes part in enter and exit motion.

Checked against 57774e14a1a86081eddb3a23523724a40da05640 (v1.1.0).

主要言語
TypeScript
スター
819
フォーク
49
平均マージ
4時間 40分
マージ済み PR(30日)
16

環境構築

はじめの一歩

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

TanStack/charts のほかの issue

TanStack/charts の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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