* Describe the bug
Advanced JSON configuration for Chart colors is being ignored or overridden by the UI.
When attempting to customize chart colors (Grouped Column Chart) using the “Advanced configuration” JSON, the changes do not take effect or are applied inconsistently.
- Using
color: ["#52c41a", "#fa8c16", "#1890ff"]results in default system colors (Blue, Green) or incorrect colors (Black) instead of the specified Hex codes. - The property
seriesField: "metrica_nombre"is correctly set, but the mapping between the metric name and the color array seems broken or overridden by the global theme. - Even when using
theme: { styleSheet: { ... } }, the chart reverts to default palettes.
* Environment
- NocoBase version: v1.9.15
- Database type and version: PostgreSQL version 17.6
- OS: Ubuntu Linux 24.04.3
- Deployment Methods: Create-nocobase-app
- Docker image version:
- NodeJS version: v22.17.0
* How To Reproduce
- Create a Chart Block using a SQL collection.
- The SQL returns three series in a column named
metrica_nombre: ‘Ejecutadas’, ‘No Ejecutadas’, and ‘Total’. - Set the X-axis to a date field and Y-axis to a numeric value.
- Set Series Field to
metrica_nombre. - Go to Advanced Configuration and insert:
JSON{ "seriesField": "metrica_nombre", "color": ["#52c41a", "#fa8c16", "#1890ff"] } - Observe that the colors on the dashboard do not match the hex codes provided (they remain the default NocoBase blue/green).
Expected behavior
The chart should strictly follow the color array or the color object mapping provided in the Advanced JSON, overriding any default UI theme. Specifically:
- ‘Ejecutadas’ should be Green (
#52c41a). - ‘No Ejecutadas’ should be Orange (
#fa8c16). - ‘Total’ should be Blue (
#1890ff).

