plotly / plotly/plotly.rs

Tracking: trace types not yet exposed in plotly.rs (plotly.js 3.7.0 parity)

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

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

主要言語
Rust
スター
1.5k
フォーク
128
PR マージ指標
30日以内にマージされた PR はありません

説明

Tracking: trace types not yet exposed in plotly.rs (plotly.js 3.7.0 parity)

Summary

Measured against the actively-supported trace types in plotly.js 3.7.0, plotly.rs exposes 27 of 46, leaving 19 unimplemented. This issue tracks the remaining trace types so contributions can be coordinated and duplicate work avoided.

plotly.js 3.7.0 defines 49 trace types, but 3 are deprecated (the Mapbox family — see below) and are excluded from the parity target. The list was generated by diffing the trace type tags plotly.rs can serialize (the PlotType enum) against the authoritative plot-schema.json shipped with plotly.js v3.7.0.

Note: this is trace-type coverage. Attribute-level parity for the already-implemented traces is being addressed separately in the plotly.js 3.7 attribute backfill work.

Deprecated in plotly.js 3.7.0 — excluded from parity (3)

These are deprecated upstream in favour of the MapLibre map subplot traces (migration guide):

Deprecated trace Recommended replacement plotly.rs status
scattermapbox scattermap both already exposed
densitymapbox densitymap both already exposed
choroplethmapbox choroplethmap replacement already exposed; deprecated trace not implemented (and won't be)

plotly.rs already ships every recommended map replacement, so there is no coverage gap here — no action needed. The two deprecated traces that are implemented (scattermapbox, densitymapbox) can be retained for back-compat and eventually deprecated in lockstep with upstream.

Currently exposed — actively-supported (27)

bar · box · candlestick · choropleth · choroplethmap · contour · densitymap · heatmap · histogram · histogram2dcontour · image · mesh3d · ohlc · pie · sankey · scatter · scatter3d · scattergeo · scattergl · scattermap · scatterpolar · scatterpolargl · sunburst · surface · table · treemap · violin

(plus the deprecated scattermapbox and densitymapbox, listed above)

Missing — actively-supported (19)

3D scientific / volumetric

  • cone — 3D vector / quiver fields
  • streamtube — 3D flow streamlines
  • isosurface — 3D isosurfaces from volume data
  • volume — 3D volume rendering

Carpet family (needs a shared carpet-axis abstraction)

  • carpet — base carpet axis system
  • contourcarpet — contours on a carpet axis
  • scattercarpet — scatter on a carpet axis

Cartesian statistical / financial

  • histogram2d — 2D histogram heatmap
  • funnel — funnel charts
  • waterfall — waterfall / bridge charts

Parallel-coordinate

  • parcoords — parallel coordinates (continuous)
  • parcats — parallel categories (categorical)

Specialized subplots

  • barpolar — bar charts on a polar axis (wind-rose)
  • scatterternary — scatter on a ternary (3-component) plot
  • scattersmith — scatter on a Smith chart (RF / impedance)

Hierarchical

  • icicle — icicle charts (sibling of sunburst / treemap)

Other

  • indicator — KPI gauges / number + delta displays
  • splom — scatter-plot matrix
  • funnelarea — funnel-area (pie-like funnel)
Suggested prioritization
  • Cheap wins — close siblings of existing traces that can reuse most of their building blocks: histogram2d (cf. histogram2dcontour / heatmap) and icicle (cf. sunburst / treemap).
  • High user demand — common business-chart types: indicator, funnel, waterfall, barpolar.
  • Larger effort — the carpet family (carpet + contourcarpet + scattercarpet) depends on first modelling a shared carpet-axis abstraction.
Notes for implementers

Adding a trace follows the established pattern (see CONTRIBUTING.md / CLAUDE.md):

  1. Create plotly/src/traces/<name>.rs, derive FieldSetter with #[field_setter(box_self, kind = "trace")].
  2. Add the corresponding PlotType variant (with the correct serde rename).
  3. Implement Trace::to_json, then re-export from traces/mod.rs and lib.rs.
  4. Add a serialize round-trip test and a CHANGELOG.md entry.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

まず CONTRIBUTING.md と CLAUDE.md を確認し、その後 plotly/src/traces/ にある既存の trace と PlotType enum を調べます。未チェックの trace タイプを 1 つ選び、確立されたパターンに従って、その trace モジュール、enum バリアント、エクスポート、シリアライズのラウンドトリップテスト、CHANGELOG.md のエントリを追加します。選択した trace が公開され、正しくシリアライズされれば完了です。

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

評価

技術スタック
rust
領域
data-visualization
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

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

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