Bar chart visualization
Bar chart settings
Mapping
Type
X-Axis
Y-Axis
Legend
Annotations
Options
Custom palette
It is possible to use custom colors for this visualization by creating a custom palette. Custom palettes can be declared as either an array or an object as follows:
- Array: Select the colors based on the order of the data (for example, the first series is the first color).
"palette": ["red", "#abcdef", "green"]
- Object: Select colors based on the series label.
"palette": { "EC2": "red", "Lambda": "#abcdef", "CloudWatch": "blue" }
To apply a custom palette, do the following:
- Click the More Options ellipsis button then select Edit JSON.
- Enter the JSON for the palette you want to apply under
visualisation/config/data-stream-bar-chart
. For example:"visualisation": { "type": "data-stream-bar-chart", "config": { "data-stream-bar-chart": { "horizontalLayout": "vertical", "grouping": false, "showValue": false, "displayMode": "actual", "xAxisLabel": "", "yAxisLabel": "", "range": { "type": "auto" }, "showGrid": true, "showLegend": false, "legendPosition": "bottom", "palette": { "EC2": "red", "Lambda": "#abcdef", "CloudWatch": "blue" } } } },
- Click Save to apply the changes.