Example code from a d3 chart component used within several projects