Skip to content

[Widgets] Implement Rust Widget APIs for Charting & Data Visualization #123

Description

@rorychatt

Problem Statement

The TypeScript frontend (src/frontend/src/widgets) contains UI renderers for charts, but the Rust rusty crate lacks Rust struct definitions and fluent builders for developer view construction.

Missing Rust Widgets

  • AreaChart
  • BarChart
  • ChordChart
  • FunnelChart
  • GaugeChart
  • LineChart
  • PieChart
  • RadarChart
  • SankeyChart
  • ScatterChart

Proposed Architecture & Design

  1. Create rusty/src/widgets/charts.rs.
  2. Define Rust structs with builder methods (.data(), .x_axis(), .y_axis(), .color_palette(), .legend(), .tooltip()).
  3. Re-export all chart widgets in rusty::widgets.

Acceptance Criteria

  • All 10 chart widgets have Rust struct definitions and builder APIs.
  • Serialized virtual tree JSON matches frontend expectations.
  • Unit tests for widget instantiation and serialization.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions