Rename @perspective-dev/viewer-charts, add missing chart types#3166
Merged
Rename @perspective-dev/viewer-charts, add missing chart types#3166
@perspective-dev/viewer-charts, add missing chart types#3166Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 tov4.5.0will 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-chartspackages has been upgraded to mostly feature parity with the package it replaces. This includes:X/Y Scatter,X/Y Line,Y Bar,X Bar,Y Line,Y Scatter,Y Area,Treemap,Sunburst,Candlestick,OHLC,Heatmap.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.swiftShaderbackend forplaywright. 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-chartshas some improvements:chart_type∈{Bar, Line, Scatter, Area}and optionalstackoverride. Flattened intocolumns_config, now enabled for Y-type charts; defaults (Bar+ no stack override). Feature Request: Mixed-type charts to display multiple series types on the same chart #2938 Mixing Chart Types #2390 Mixing chart types in single view #2331plugin-config).