Category Archives: dataviz

IDV in Python: Interactive heatmap with Pandas and mpld3

I’ve been having a good time following the development of the mpld3 package, and I think it has a lot of potential for making interactive data visualization part of my regular workflow instead of that special something extra. A few weeks ago, an mpld3 user showed up with an interesting challenge, and solved their own problem quite well.

I finally got a chance to look at it today, and with a little spit-and-polish this could be something really useful for me.

ihm

Comments Off

Filed under dataviz, software engineering

Stylish tooltips in mpld3

I have added some stylish HTML tooltips to mpld3, make something pretty with them. Demonstration here.

Comments Off

Filed under dataviz, software engineering

Matplotlib and dj3s, together at last

There is an exciting new project in pythonic interactive data visualization that I have my eye on: mpld3. It plays well with matplotlib-based pretty plotting packages, and has the beginnings of a plugin framework for adding custom interactivity.

I used it to mock up a Cartesian fish eye distortion plot, something I’ve wanted for DisMod-MR ever since I learned about it. (Sometimes the interactivity doesn’t work in that notebook, and requires reloading everything… cutting edge software has some rough edges.)

1 Comment

Filed under dataviz, software engineering

Will I attend a MOOC?

The author of one of the best books on data visualization is giving a massively open online course (MOOC) this fall. I’m going to check it out. You may be interested, too.

http://www.thefunctionalart.com/2013/09/the-third-introduction-to-infographics.html

Comments Off

Filed under dataviz, education

GeoJSON for Norway Counties

This may come in handy: http://gangerolf.blogspot.com/2012/09/norway-in-geojson.html

I know I have seen a nice one for USA somewhere as well.

Comments Off

Filed under dataviz

Global Data Viz in translation

IHME has recently worked with the World Bank to release a series of regional reports on relevant findings from the Global Burden of Disease 2010 Study. It is cool to see this work getting disseminated, and now even in non-English editions. This raises questions for data visualization translations, like should 1990 and 2010 be in reversed positions when accompanying right-to-left text?

gh_dv_q

Comments Off

Filed under dataviz

D3js speed

I sometimes wish transitions in a data viz went more smoothly. Maybe this frame-per-second calculator can help with optimization:

http://bl.ocks.org/mbostock/2647924

Comments Off

Filed under dataviz

Force-directed graph with clusters in D3js

Stack Overflow comes through with a cool solution: http://stackoverflow.com/questions/10731008/d3-js-how-to-create-force-directed-graph-clusters

http://bl.ocks.org/donaldh/2918073

http://bl.ocks.org/donaldh/2920551

Thanks!

Comments Off

Filed under dataviz

Animations and transitions in D3js

Seeing data transition can be amazing, can be distracting. Making it work can be confusing. Here are some hints: http://www.jeromecukier.net/blog/2012/07/16/animations-and-transitions/

Comments Off

Filed under dataviz

Javascript style?

Javascript style guidelines seem less definitive than PEP-8. Is this a good reference: http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml#JavaScript_Style_Rules?

Comments Off

Filed under dataviz