TeleAI-AI-Flow commited on
Commit
f756260
·
verified ·
1 Parent(s): 21aeb55

Upload Chart.vue

Browse files
Files changed (1) hide show
  1. src/components/Chart.vue +1 -1
src/components/Chart.vue CHANGED
@@ -172,12 +172,12 @@ function getChartOption(series, isDark = false) {
172
  // 现在按 finalSeries 顺序分配颜色和符号,保证颜色顺序与 modelTypeMapping 一致
173
  const finalSeriesStyled = finalSeries.map((s, idx) => {
174
  const color = colors[idx % colors.length]
175
- const lineType = lineStyles[idx % lineStyles.length] || 'solid'
176
  // 如果 series 名称包含 (MoE) 则使用星形
177
  const isMoESeries = String(s.name).includes('(MoE)')
178
  const symbolShape = strtSymbolSeries.includes(String(s.name)) ?
179
  'path://M341.5 45.1C337.4 37.1 329.1 32 320.1 32C311.1 32 302.8 37.1 298.7 45.1L225.1 189.3L65.2 214.7C56.3 216.1 48.9 222.4 46.1 231C43.3 239.6 45.6 249 51.9 255.4L166.3 369.9L141.1 529.8C139.7 538.7 143.4 547.7 150.7 553C158 558.3 167.6 559.1 175.7 555L320.1 481.6L464.4 555C472.4 559.1 482.1 558.3 489.4 553C496.7 547.7 500.4 538.8 499 529.8L473.7 369.9L588.1 255.4C594.5 249 596.7 239.6 593.9 231C591.1 222.4 583.8 216.1 574.8 214.7L415 189.3L341.5 45.1z'
180
  : 'circle'
 
181
  // console.log(`Series "${s.name}" uses symbol "${symbolShape}"`)
182
  const baseSize = Number(s.symbolSize) || 8
183
  const emphasisSize = Math.max(12, Math.round(baseSize * 1.6))
 
172
  // 现在按 finalSeries 顺序分配颜色和符号,保证颜色顺序与 modelTypeMapping 一致
173
  const finalSeriesStyled = finalSeries.map((s, idx) => {
174
  const color = colors[idx % colors.length]
 
175
  // 如果 series 名称包含 (MoE) 则使用星形
176
  const isMoESeries = String(s.name).includes('(MoE)')
177
  const symbolShape = strtSymbolSeries.includes(String(s.name)) ?
178
  'path://M341.5 45.1C337.4 37.1 329.1 32 320.1 32C311.1 32 302.8 37.1 298.7 45.1L225.1 189.3L65.2 214.7C56.3 216.1 48.9 222.4 46.1 231C43.3 239.6 45.6 249 51.9 255.4L166.3 369.9L141.1 529.8C139.7 538.7 143.4 547.7 150.7 553C158 558.3 167.6 559.1 175.7 555L320.1 481.6L464.4 555C472.4 559.1 482.1 558.3 489.4 553C496.7 547.7 500.4 538.8 499 529.8L473.7 369.9L588.1 255.4C594.5 249 596.7 239.6 593.9 231C591.1 222.4 583.8 216.1 574.8 214.7L415 189.3L341.5 45.1z'
179
  : 'circle'
180
+ const lineType = symbolShape !== 'circle' ? 'dashed' : (lineStyles[idx % lineStyles.length] || 'solid')
181
  // console.log(`Series "${s.name}" uses symbol "${symbolShape}"`)
182
  const baseSize = Number(s.symbolSize) || 8
183
  const emphasisSize = Math.max(12, Math.round(baseSize * 1.6))