d3 plugin for automatic labeling