Configure category colors¶
UI • interface
Configures the color of the categories of a categorical or text column.
Usage¶
The following are the step's expected inputs and outputs and their specific types.
Step signature
configure_category_colors(column: category|list[category]|text|boolean|list[boolean], {"param": value})
where the object {"param": value}
is optional in most cases and if present may contain any of the parameters described in the
corresponding section below.
Example¶
Change the colors of the category 'positive' to white, 'negative' to black and 'neutral' to green
Example call (in recipe editor)
configure_category_colors(ds.sentiment, { "postive": "#FFFFFF", "negative": "#000000", "neutral": "#00ff00" })
Inputs¶
column: column:category|list[category]|text|boolean|list[boolean]
Column to be configured.
Parameters¶
*param: string
One or more additional parameters. Note that all parameters should have the same type.