I want to plot spatial data on a map. I want to use streamlit
because it seems to be easy to use and I want to explore it a bit.
First a tried plotting my data with their inbuilt deck_gl
-API. This worked pretty good, but since I need to plot glyphs/icons and the IconLayer
isn't built into streamlit
yet, I need to switch to another library.
I've read that Altair
should be a good fit for me and it's also well supported by streamlit
.
However, I can't figure out how to create a visualization with altair
when I don't use one of the vega_datasets
.
My data is in a dataframe with the following structure:
| latitude | longitude | temperature |
| ------------ | ------------- | --------------- |
| -122.23123 | 38.2321 | 23 |
| -122.2321 | 28.2342 | 25 |
How can I create a plot like this using altair?
Any help or hints are highly appreciated!
https://raw.githubusercontent.com/vega/vega-datasets/master/data/us-10m.json
but its quite difficult for me to figure out how to get my data into a form that works out for Altair. I'm also unable to find examples on how somebody did this before. – Furmenty