protovis part 4: external data and animated labels
Add commas to labels
It's not enough to simply display the data, the chart has to be easy to read. We'll address this as ws we go through the next several steps. Let's start by adding commas to our data lables. Fortunately, Protovis has built in comma formatting. To use it, add a new variable called commas and make it equal to pv.Format.number()
Now go back to the text property and type commas and put d.White in parens.