Kepler.gl: Time-series choropleth by combining GeoJSON with secondary data

Created on 14 Dec 2018  路  6Comments  路  Source: keplergl/kepler.gl

We have timeseries data containing a column for country name. We also have a GeoJSON of world countries. However, when creating a polygon layer for the GeoJSON file, it does not allow us to color the countries based on data in a second data set.

flameshot-2018-12-14t16 24 04

I would like to create a choropleth map by providing a GeoJSON file for geometry and then styling the GeoJSON polygons based on fields in a second data 'layer'. This could additionally allow the secondary data set to be time filtered, so we could see change over time:

peek 2018-12-14 16-27

Describe alternatives you've considered
I have considered creating the interactive, time-series choropleth with Bokeh.

feature roadmap item large

Most helpful comment

Hi, Is there any update on this feature? Thanks

All 6 comments

Hello @brylie,
in order to perform reach the result you are looking for Kepler.gl should be able to join datasets and perform operations on the join result. Said feature is part of the out roadmap and we are going to work on it next year.

As workaround, I suggest to merge the two datasets into in order achieve the result you want.

Alright, I can give it a try. As the data are time-series measurements binned by country and date, do you recommend any resources or tutorials for joining such data? I will search around and ask on Stack Overflow.

Also, wouldn't a join creat a lot of duplicated geometry data? Geopolitics aside, the geometries do not change as often as the measurements, so might be efficient to reference only once. Relatedly, in our data some countries have no measurements in a given period or at all.

@brylie you are right, you will have to create duplicate geometry while joining. The duplicated geometry will be filtered out once the time filter is enabled.

Closing it for now, please re-open with more questions

Hi, Is there any update on this feature? Thanks

Was this page helpful?
0 / 5 - 0 ratings