Bar chart visualization
Bar chart settings
Mapping
Type
X-Axis
Y-Axis
Color
Setting the Color to Custom allows you to choose a color and write an expression for the condition that a color should match. If more than one expression matches, then the last match decides the color.
Expressions can use the following:
For backwards compatibility, if the palette property was used in the JSON, this is converted to expressions and shown in the Color panel.
Using JavaScript in custom color expressions
You can also use builtin Javascript functions such as value.includes() and Math.round(value), but most expressions will probably just be simple comparisons of the values such as >, < and ==.
Expressions should contain a single mustache that resolves to a true or false value.