Skip to content

Plotting multiple pie charts at different geolocations with vega-lite #9397

Answered by pvanheus
pvanheus asked this question in Q&A
Discussion options

You must be logged in to vote

I eventually turned to Altair to create the map I wanted. This was after realising that what I needed was a collection of layers: one layer for the map and one layer for each pie chart, located at the correct position on the map. The Python code to create this is here: https://gist.github.com/pvanheus/ab93556b4316f84129b9b83a66613246

and the final vega-lite json is here: https://gist.github.com/pvanheus/5e41bd0931a69c25ce4056b0f94ee523

Any comments on how to do this better are welcome!

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pvanheus
Comment options

@pvanheus
Comment options

@pvanheus
Comment options

Answer selected by pvanheus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants