-
Hi everyone I have data organised essentially like this: Lat,Long,ST In other words, multiple different STs found at XXX,YYY and only 1 ST at XXX,ZZZ. Using Microreact I have been able to create this map: but would like to customize it further and have looked to vega-lite for that. I am struggling to get the multiple pie charts: segments of my pie chart gets distributed across the different points that I am plotting. Is there a way to achieve something like this map in vega-lite? What I have thus far - the positions are also wrong, probably a projection issue: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @pvanheus, can you provide a spec to reproduce the graphic that you've included at the end of your post? It will be easier for others to help with a fully reproduceable example with data. |
Beta Was this translation helpful? Give feedback.
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!