Archive for category: d3
2 January, 2012 (20:15) | d3, tips | By: jerome
Creating visualizations from static files is fine and dandy but sometimes you need to be able to access dynamic data. And some other times, you may want to somehow record interactions from your users. One way to do that is by interacting with a mySql database. Without further ado here is the demo: How does [...]
Tags: ajax, d3, database, mysql, php, tutorial, xhr | 8 comments
11 August, 2011 (12:03) | d3, protovis, tips | By: jerome
In protovis, scales were super-useful in just about everything. That much hasn’t changed in d3, even though d3.scale is a bit different from pv.Scale. (do note that d3.scale is in lowercase for starters). Scales: the main idea Simply put: scales transform a number in a certain interval (called the domain) into a number in another [...]
Tags: color, color palettes, d3, hsl, linear, logarithmic, ordinal, power, protovis, quantitative, rgb, scales, tutorial | 3 comments
9 August, 2011 (14:49) | d3, protovis, tips | By: jerome
From data to graphics d3 and protovis are built around the same principle. Take data, put it into an array, and for each element of data a graphical object can be created, whose properties are derived from the data that was provided. Only d3 and protovis have a slightly different way of adding those graphical [...]
Tags: charts, d3, javascript, protovis, selection, svg, tutorial | 7 comments
8 August, 2011 (16:47) | d3, protovis | By: jerome
You’ve spent some time learning protovis only to find that its development is halted as authors have switched to work on d3. Have your efforts all been in vain? Fear not! This series of posts will help you adapt to d3 with a protovis background. Before we go anywhere further, let me say that these [...]
Tags: d3, protovis, svg, tutorial | 2 comments