Set the same color for a particular item in all charts


#1

Hi community, I have a data application that uses ChartFactor Community and I want to give an idea of continuity between the behavior of a particular item over several charts. However, the item that I want highlight takes different colors on each one. There is a way to color this item in the same way on every chart. Thanks.


#2

Hi @ryan, you can use the Color by Attribute Value functionality exposed on the documentation, to assign a color to specific attribute value on each chart. Set the “match” property to the color object of each chart like the following example:

color.match({
    'Mamma Mia!': 'red',
    'Macbeth': 'blue',
    'Jersey Boys': 'purple'
});

Let me know if you need a more detailed answer. Best regards.