Skip to content

Commit ed07296

Browse files
v2.10.3: smoke follows the theme again
The scatter series still carried large:true, which makes ECharts skip visualMap's per-point colouring and fall back to its default palette — that is why the smoke was blue-violet on every theme, clashing badly with amber and nord. Switched to progressive rendering, which keeps the gradient. Also tightened the deviation range (0.5 -> 0.35) and widened the opacity span so the beam core reads brighter against the spread. Verified by sampling rendered pixels: on amber the chart area contains only warm oranges (#ffb000 and its darker steps), no blue-violet anywhere; visualMap colours resolve per theme (dark green, nord frost, amber, solarized cyan).
1 parent 247329d commit ed07296

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

static/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,12 @@
337337
return html;
338338
} },
339339
// 荧光束渐变:贴线的样本 = 炽亮核心,散开的样本渐冷渐暗
340-
visualMap: { show: false, type: 'continuous', dimension: 2, min: 0, max: 0.5,
340+
visualMap: { show: false, type: 'continuous', dimension: 2, min: 0, max: 0.35,
341341
seriesIndex: 0,
342342
inRange: { color: [cssv('--smoke-hot'), cssv('--smoke-mid'), cssv('--smoke-cool')],
343-
opacity: [0.5, 0.10] } },
343+
opacity: [0.55, 0.12] } },
344344
series: [
345-
{ type: 'scatter', data: smoke, symbolSize: 2.2, silent: true, large: true },
345+
{ type: 'scatter', data: smoke, symbolSize: 2.2, silent: true, progressive: 4000, progressiveThreshold: 2000 },
346346
{ type: 'line', data: median, showSymbol: false, silent: true, z: 4,
347347
lineStyle: { color: phos, width: 7, opacity: 0.10 } },
348348
{ type: 'line', data: median, showSymbol: false,

0 commit comments

Comments
 (0)