More examples

Let us now go a bit further into D3 by looking at some additional examples.

Another twist on bar chart visualizations

A bar chart is a pretty common type of data visualization and we've already seen some examples using the D3 libraries. One more bar-chart D3 template is worth a quick look. This one is able to handle negative values. Think about it--most bar charts show positive values so flipping the tic of an axis (as its referred to) requires some special logic.

The D3 example named Bar Chart with Negative Values II handles this kind of scenario nicely and it can be viewed and downloaded from the following location: http://blocks.org/mbostock/79a82f4b9bffb69d89ae.

This sample template shows both negative and positive values for the ...

Get Big Data Visualization now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.