d3.js - How to make pandas python render with d3 and leaflet.js -


i'm newbie desperately trying develop workflow between pandas in python , d3 improve visualisation skills. can explain how access columns of data in d3?

my effort is: http://jsbin.com/pizakerove/edit?html,output

i've managed munge pandas dataframe to_json method orient="index" shape need.

i'm trying add lat/long points leaflet.js map using d3 using mike bostock's tutorial - http://bost.ocks.org/mike/leaflet/

excuse weakness javascript. understand need use accessor function access columns of data, i'm lost how this.

i can see how once can access fields of data might able lever d3 create map , separate bar chart.

can explain i've got wrong or @ least provide simple pathway me head around d3?

i managed fix using 'orient' parameter of 'records' instead of 'index'.

i used block http://bl.ocks.org/d3noob/9267535 working map.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -