A d3.chart based tooltip mixin