Jimin Huang commited on
Commit
dfdf49d
·
1 Parent(s): 76b2fa0

Change settings

Browse files
Files changed (1) hide show
  1. src/components/CompareChartE.vue +7 -14
src/components/CompareChartE.vue CHANGED
@@ -26,24 +26,17 @@ const ASSET_CUTOFF = {
26
  // ETH: '2025-08-15',
27
  };
28
 
29
- // Stable palette per agent (tweak as you like)
30
- const AGENT_PALETTE = [
31
- '#6D4CFE', // indigo
32
- '#FF6B6B', // coral
33
- '#10B981', // emerald
34
- '#F59E0B', // amber
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 AGENT_PALETTE[idx % AGENT_PALETTE.length]
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 } = {}) {