Skip to content

Commit ca0601d

Browse files
committed
refactor: add more chart color
1 parent e13256e commit ca0601d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/client/utils/color.ts

+14
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,20 @@ const colors = [
1717
'#FF5722',
1818
'#4CAF50',
1919
'#FF9800',
20+
'#795548',
21+
'#607D8B',
22+
'#9E9E9E',
23+
'#FFB6C1',
24+
'#87CEEB',
25+
'#DDA0DD',
26+
'#F0E68C',
27+
'#98FB98',
28+
'#B0C4DE',
29+
'#FFE4B5',
30+
'#20B2AA',
31+
'#FF69B4',
32+
'#7B68EE',
33+
'#32CD32',
2034
];
2135
export function pickColorWithStr(str: string) {
2236
return colors[str2int(str) % colors.length];

0 commit comments

Comments
 (0)