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 letters A through H, and it is shown in the following figure:
Getting back to our manufacturing plant, a new challenge has been implemented by management. That is a product output target has been set for each of the plant's machines. Management wants...