The color scheme is determined through the colorScheme prop.
The context label is shown above the items and should explain the domain, if that is not clear from the chart title.
For example if the bars represent imports and the symbols represent exports, place two <ChartDomainLegend>s adjacent to each other each with a different context label:
When all the items have a common prefix of at least two words, the prefix is extracted to avoid repetition. A colon (:) character is appended to the prefix, unless the extracted prefix already ends with one.
Set kind to "area", "symbol", or "line" to change how the domain values are encoded.
For single-item legends, you have the option to use regular color or a faded shade. This is used in charts which combine bars + dumbbells (when dumbbells are shown the bar uses the faded shade).
Note: Setting faded to true or false will not work when the domain has more than one item. When that prop
is set, it forces all colors to be the same.