Added legend for density