javascript - How to do time-data in D3 maps -


i have time-series dataset i'd put on map---it's irregular times series of incidents in countries, indexed date , country. i've used d3 couple simple things, unsure how organize data here, conceptually. i've checked...

for map-making, , comfortable generating .json map itself:

wget "http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/cultural/ne_50m_admin_0_countries.zip" unzip ne_50m_admin_0_countries.zip ogr2ogr -f "geojson" output_features.json ne_50m_admin_0_countries.shp -select iso_a3 topojson -o topo.json output_features.json --id-property iso_a3 

however, when data looks this...

incidents.csv date, iso3, eventtype 2001-05-21, abw, 2002-01-01, abw, 2005-07-31, abw, b 2003-02-21, afg, b 2008-02-21, afg, c 2000-03-09, ago, 2010-06-11, ago, c 

i'm @ loss how "attach" map figure---time whole other dimension. each country-shape time vector attached it, includes "eventtype" well? event types? how?

on 1 hand, see utility in aggregating things ahead of time, level of...

abw, a, 2  abw, b, 1 abw, c, 0 afg, a, 0 afg, b, 1 afg, c, 1 ago, a, 1 ago, b, 0 ago, c, 1 

...and attaching somehow , produce fine choropleth.

but i'd keep time component. ideally, i'd have 2 slider bars @ bottom of map can use show aggregations of types of events happen between given start , end-date.

i'm python , time-series data, recognize i'm bit beyond skills here d3---how started, , what's preferred way attach , work categorical, irregular time-series data in topojson in d3? how solve this?

(i have related question workflow on gis stackexchange that's less complex.)

i think temporary answer i'll fill in else looking @ question:

time on map hard, , kind of non-generic. you'll spending lot of time proper interface-design.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -