Skip to content

Commit

Permalink
Mention approach of displaying transformed data with text marks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Jun 16, 2023
1 parent 40ab881 commit 5c8196c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions doc/user_guide/transform/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,16 @@ Transform Method
Accessing Transformed Data
~~~~~~~~~~~~~~~~~~~~~~~~~~
When charts are displayed, data transformations are performed in the browser by
the Vega JavaScript library. To make the transformed data available in Python,
Altair provides the :meth:`~Chart.transformed_data` Chart method which integrates with
`VegaFusion <https://vegafusion.io/>`_ to evaluate these data transformations in
the Python kernel.
the Vega JavaScript library. It's often helpful to inspect transformed data
results in the process of building a chart. One approach is to display the
transformed data results in a table composed of :ref:`Text<user-guide-text-marks>`
marks as in the :ref:`gallery_scatter_linked_table` gallery example.

While this approach works, it's somewhat cumbersome, and still does not make it
possible to access the transformed data from Python. To make transformed data
results available in Python, Altair provides the :meth:`~Chart.transformed_data`
Chart method which integrates with `VegaFusion <https://vegafusion.io/>`_
to evaluate data transformations in the Python kernel.

First, install VegaFusion with the embed extras enabled.

Expand Down

0 comments on commit 5c8196c

Please sign in to comment.