简体   繁体   中英

how to change charts colors in slate admin?

I'm using slate admin and I display some charts and it works pretty well but I would like to change colors of these charts (they aren't different enough).

Where are these colors configured? Is it possible to do it with a javascript call?

Thanks!

Finally found the solution.

Locate the file

js/slate/slate.js 

and change the line

var chartColors = ['#be1e2d','#0CC912','#92d5ea','#ee8310','#8d10ee','#5a3b16','#26a4ed','#f45a90','#e9e744'];

with the colors you want :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM