Chart Config
Structure
{
colors?: String[];
legend?: {
enabled?: boolean;
position?: 'top' | 'left' | 'right' | 'bottom';
};
}
Example of a Color Array
['rgb(195, 49, 73)', 'rgb(168, 194, 86)']
If there are fewer colors than data points, then the colors are repeated. For example, for the two colors and three data points, here is how colors will be used:
['rgb(195, 49, 73)', 'rgb(168, 194, 86)', 'rgb(195, 49, 73)']