I decoded the example dashboard code a while back, you can find the explanation
here.
Attached is the Joe Ross document, so you don't have to pull it off that site. It's what I used to figure out the example code. Takes some careful reading, but between that and my commented code you should be able to figure out where to add stuff.