Additional early code to work out relationship of angular and d3