color to data-color attribute