background preloader

Related:  d3.jsD3.js

First steps in data visualisation using d3.js, by Mike Dewar This happens to be one of those rare instances where the benefit of hindsight does not make me regret something said flippantly on a panel. I deeply believe that in order to truly change the world we cannot simply "throw analytics at the problem." To that end, the medical and health industries are perhaps the most primed to be disrupted by data and analytics. To be successful, however, a deep respect for both the methodological and clinical contexts of the data are required.

D3 for Mere Mortals By Luke Francl (, August 2011 d3.js is a data visualization library by Mike Bostock, who is also the primary creator of Protovis, which D3 is designed to replace. D3 has a steep learning curve, especially if (like me) you are not used to the pixel-precision of graphics programming. To build a visualization with D3, you need to understand JavaScript objects, functions, and the method-chaining paradigm of jQuery; the basics of SVG and CSS; D3's API; and the principles for designing effective infographics.

D3.js animated map visualization - Mark Mark Oh Update: To create your own visualization like this, check out my project Datamaps. When you walk into Bazaarvoice’s office in Austin, TX, you can’t miss a giant screen in the main lobby displaying some interesting metrics regarding our business. Ordinal Scales · mbostock/d3 Wiki Wiki ▸ API Reference ▸ Scales ▸ Ordinal Scales Scales are functions that map from an input domain to an output range. Ordinal scales have a discrete domain, such as a set of names or categories.

SVG and Handlebars JS Templates I’ve been working with Handlebars JS for a while and wanted to use templating to generate portions of SVG. If you read my last post on SVG and JavaScript, a proper namespace is the key to the SVG castle. So I needed a way to get the output from my Handlebars template to be seen as proper SVG. D3.js is Not a Graphing Library, Let's Design a Line Graph Working with graphing libraries can be tedious. Designing them can be downright frustrating. Each one of them slightly different, but most of them share two common flaws: a design-by-configuration and template design approach. A bar graph can be just a few bars with labels and tick marks...until it isn't. Want to change the background color? New option.

Creating Animations and Transitions With D3 For the ambitious, this is a great intro to creating your own animations and transitions in d3.js. If you get in over your head, drop by the Visually Marketplace to hire one of our talented developers. In interactive visualisation, there is the word reactive. Well, maybe not literally, but close enough. Introduction to d3: Build an Animated Graph in 19 Lines of Code - Need for Air The goal of this tutorial is to give an introduction to d3.js by using the example of a simple animated bar chart. Before anything else, let’s take a look at it. Click on any bar of this chart -you can do it multiple times- to see what happens! Pretty neat, huh? You can see the gist of a standalone working HTML here. We’re going to go through the javascript part which consists of 19 lines of javascript (comments and blank lines excluded of course), on top of the d3 library. d3 (for data driven document) is a low-level javascript framework that allows you to easily bind data to elements of the DOM and manipulate them.

Combining Plots R makes it easy to combine multiple plots into one overall graph, using either the par( ) or layout( ) function. With the par( ) function, you can include the option mfrow=c(nrows, ncols) to create a matrix of nrows x ncols plots that are filled in by row. mfcol=c(nrows, ncols) fills in the matrix by columns. # 4 figures arranged in 2 rows and 2 columns attach(mtcars) par(mfrow=c(2,2)) plot(wt,mpg, main="Scatterplot of wt vs. mpg") plot(wt,disp, main="Scatterplot of wt vs disp") hist(wt, main="Histogram of wt") boxplot(wt, main="Boxplot of wt") click to view

Related:  D3