Skip to content

Rename @perspective-dev/viewer-charts, add missing chart types#3166

Merged
texodus merged 3 commits intomasterfrom
perspective-charts
Apr 23, 2026
Merged

Rename @perspective-dev/viewer-charts, add missing chart types#3166
texodus merged 3 commits intomasterfrom
perspective-charts

Conversation

@texodus
Copy link
Copy Markdown
Member

@texodus texodus commented Apr 23, 2026

This PR introduces @perspective-dev/viewer-charts (ported from #3160, @perspective-dev/viewer-webgl), and deletes (but does not yet deprecate) @perspective-dev/viewer-d3fc. This is a breaking change, upgrading to v4.5.0 will require using @perspective-dev/charts (this package has a compatible superset of its predecessor's API, though it has a new name and internals).

In addition, the new @perspective-dev/viewer-charts packages has been upgraded to mostly feature parity with the package it replaces. This includes:

  • Adds nine new chart types in addition to the original three: X/Y Scatter, X/Y Line, Y Bar, X Bar, Y Line, Y Scatter, Y Area, Treemap, Sunburst, Candlestick, OHLC, Heatmap.
  • Significant refactor internally - drops streaming API in favor of the new with_typed_arrays. While streaming is better for interactive performance of one large dataset, it is worse for throttling streaming udpates. I've left the batching structure of WebGL rendering in, but the Viewer API which supported streaming has been removed entirely.
  • Visual regression tests using the swiftShader backend for playwright. We have tried this approach before (with HighCharts) and it was miserable, but this seems to works so far out-of-the-box without any nonsense.

Not featured in the old @perspective-dev/viewer-d3fc, the new @perspective-dev/viewer-charts has some improvements:

texodus added 3 commits April 22, 2026 23:26
Signed-off-by: Andrew Stein <steinlink@gmail.com>
Signed-off-by: Andrew Stein <steinlink@gmail.com>

# Conflicts:
#	rust/perspective-viewer/src/rust/lib.rs
Signed-off-by: Andrew Stein <steinlink@gmail.com>
@texodus texodus added enhancement Feature requests or improvements breaking labels Apr 23, 2026
@texodus texodus marked this pull request as ready for review April 23, 2026 05:05
@texodus texodus merged commit 42783ec into master Apr 23, 2026
16 checks passed
@texodus texodus deleted the perspective-charts branch April 23, 2026 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking enhancement Feature requests or improvements

Development

Successfully merging this pull request may close these issues.

1 participant