Skip to content

Remove the standalone Figure path and VisualizationSpec; keep Figure as the panel builder #87

Open

Description

@jvdd

You can always make a dashboard with one figure. This gives simpler code and the same result.

The browser already gets the same result: Figure.show() wraps its spec into a DashboardSpec with one figure, and the server has only /dashboard/update (on feat/linked-axes).

Remove

  • The standalone Figure path: Figure(data), Figure.show, to_spec, save_spec, load_spec, from_spec.
  • VisualizationSpec and its branches: encode_spec / decode_spec / parse_spec in spec.py, history.py, report.py, adapters/base.py (the one-figure wrapper), cli.py, server.py (/share, /view), and the tests that use it.

Keep

  • The Figure class, as the builder for one panel. Dashboard.add_figure() returns it, and all trace builders (add_line, add_histogram, ...) and layout methods are on it.

Cost

  • The quickstart gets longer: Figure(df).add_line(...).show() becomes d = Dashboard(df); d.add_figure().add_line(...); d.show(). Update docs/index.md and the other examples.
  • Saved single-figure specs and shared URLs stop loading. Pre-1.0 policy allows this. Bump the spec version.

Activity

  1. changed the title [-]Remove Figure and only use Dashboard in the API[/-] [+]Remove the standalone Figure path and VisualizationSpec; keep Figure as the panel builder[/+] on Sep 24, 2026
  2. jvdd commented on Sep 29, 2026

    @jvdd
    ContributorAuthor

    Decision (2026-09-29): do this issue. Dashboard becomes the only entry point, and Figure stays the panel builder. This covers #83, which is closed as superseded. Not during launch week: the quickstart, README, docs and the flexviz-explore skill change in the same PR, and the spec version bumps.

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