add legend for d3_heatmap