Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
1432 Vues

Hi community,


i need to change the colors of my charts and i dont know how, any suggestions?

Avatar
Ignorer
Meilleure réponse

Hi Jaime Millan Conejero,

https://stackoverflow.com/questions/72273470/change-bar-chart-column-color-in-odoo

Based on your requirement may be help.

export const COLORS = [

    "#1f77b4",

    "#ff7f0e",

    "#aec7e8",

    "#ffbb78",

    "#2ca02c",

    "#98df8a",

    "#d62728",

    "#ff9896",

    "#9467bd",

    "#c5b0d5",

    "#8c564b",

    "#c49c94",

    "#e377c2",

    "#f7b6d2",

    "#7f7f7f",

    "#c7c7c7",

    "#bcbd22",

    "#dbdb8d",

    "#17becf",

    "#9edae5",

];

This is Color list use Odoo  by deafult 

addons/web/static/src/views/graph/colors.js

Thanks.

Avatar
Ignorer
Auteur

Really preciate it Thanks!

Publications associées Réponses Vues Activité
1
sept. 24
2465
0
sept. 24
1020
2
août 25
366
1
août 25
280
1
août 25
532