For visualizing categorical multiplicative data in D3.