Spaces:
Running
Running
Jimin Huang
commited on
Commit
·
dfdf49d
1
Parent(s):
76b2fa0
Change settings
Browse files
src/components/CompareChartE.vue
CHANGED
|
@@ -26,24 +26,17 @@ const ASSET_CUTOFF = {
|
|
| 26 |
// ETH: '2025-08-15',
|
| 27 |
};
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
'#
|
| 32 |
-
'#
|
| 33 |
-
'#
|
| 34 |
-
|
| 35 |
-
'#06B6D4', // cyan
|
| 36 |
-
'#A855F7', // violet
|
| 37 |
-
'#64748B', // slate
|
| 38 |
-
'#E11D48', // rose
|
| 39 |
-
'#0EA5E9', // sky
|
| 40 |
-
'#84CC16', // lime
|
| 41 |
-
]
|
| 42 |
|
| 43 |
// pick color by agent name + index (from agentColorIndex map)
|
| 44 |
function getAgentColor(agent, idx = 0) {
|
| 45 |
// keep simple + deterministic
|
| 46 |
-
return
|
| 47 |
}
|
| 48 |
|
| 49 |
function drawImageInCircle(ctx, img, cx, cy, radius, { mode = 'contain', padding = 0 } = {}) {
|
|
|
|
| 26 |
// ETH: '2025-08-15',
|
| 27 |
};
|
| 28 |
|
| 29 |
+
const AGENT_COLOR_MAP = {
|
| 30 |
+
HedgeFundAgent: '#6D4CFE',
|
| 31 |
+
DeepFundAgent: '#FF6B6B',
|
| 32 |
+
TradeAgent: '#10B981',
|
| 33 |
+
InvestorAgent: '#F59E0B'
|
| 34 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
// pick color by agent name + index (from agentColorIndex map)
|
| 37 |
function getAgentColor(agent, idx = 0) {
|
| 38 |
// keep simple + deterministic
|
| 39 |
+
return AGENT_COLOR_MAP[agent] || '#999'
|
| 40 |
}
|
| 41 |
|
| 42 |
function drawImageInCircle(ctx, img, cx, cy, radius, { mode = 'contain', padding = 0 } = {}) {
|