added a pretty version with d3.js