Skip to content

Commit

Permalink
Support extracting transformed chart data using VegaFusion (#3081)
Browse files Browse the repository at this point in the history
* Port transformed_data functionality from VegaFusion

* Add initial transformed_data tests

* Test exclude flag to transformed_data

* chart.transformed_data -> chart._transformed_data. Make method internal while still experimental

* Add VegaFusion as dev dependency

* Add better error message when VegaFusion is not installed

* Make utils.transformed_data internal, use absolute imports

* Use DataFrameLike protocol for the transformed_data signature

The returned DataFrames can be arrow or Polars as well if those are used as the input to the Chart.

* Add NotImplementedError for RepeatChart

* Use Chart._get_name to name subcharts

* Protocol is available in Python 3.8

* Make DataFrameLike private for now

---------

Co-authored-by: Stefan Binder <binder_stefan@outlook.com>
  • Loading branch information
jonmmease and binste authored Jun 14, 2023
1 parent 597cd31 commit f3938bf
Show file tree
Hide file tree
Showing 6 changed files with 848 additions and 3 deletions.
Loading

0 comments on commit f3938bf

Please sign in to comment.