We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We need to update the encode() method so that it will handle multiple encoding fields in cases where it is supported.
encode()
For example, in the most recent vega-lite release, it is possible to pass multiple fields to the tooltip encoding:
from vega_datasets import data cars = data.cars() chart = alt.Chart(cars).mark_point().encode( x='Horsepower', y='Miles_per_Gallon', color='Origin' ) chart.encoding.tooltip = [{'field': 'Name', 'type': 'nominal'}, {'field': 'Origin', 'type': 'nominal'}] chart
Altair should make this available via a more simplified API, such as
from vega_datasets import data cars = data.cars() chart = alt.Chart(cars).mark_point().encode( x='Horsepower', y='Miles_per_Gallon', color='Origin', tooltip=['Name', 'Origin'] )
The text was updated successfully, but these errors were encountered:
detail also support multiple fields (since v1).
detail
Sorry, something went wrong.
No branches or pull requests
We need to update the
encode()
method so that it will handle multiple encoding fields in cases where it is supported.For example, in the most recent vega-lite release, it is possible to pass multiple fields to the tooltip encoding:
Altair should make this available via a more simplified API, such as
The text was updated successfully, but these errors were encountered: