pass key instead of color as the legend color in item table