|
@@ -111,14 +111,21 @@ export function handleHeatmapPlotChartLogic(
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 生成热力图 series
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // 生成热力图数据
|
|
|
item.option.series = [
|
|
item.option.series = [
|
|
|
{
|
|
{
|
|
|
type: "heatmap",
|
|
type: "heatmap",
|
|
|
data: heatmapData,
|
|
data: heatmapData,
|
|
|
progressiveThreshold: 3000, // 当数据量超过3000时启用渐进式渲染
|
|
progressiveThreshold: 3000, // 当数据量超过3000时启用渐进式渲染
|
|
|
- progressive: true,
|
|
|
|
|
- renderMode: "webgl",
|
|
|
|
|
|
|
+ progressive: true, // 启用渐进式渲染
|
|
|
|
|
+ renderMode: "webgl", // 启用 WebGL 渲染
|
|
|
|
|
+ label: {
|
|
|
|
|
+ show: true,
|
|
|
|
|
+ formatter: (params) => params.value[2], // 显示热力值
|
|
|
|
|
+ color: "#000", // 数字颜色
|
|
|
|
|
+ fontSize: 12,
|
|
|
|
|
+ },
|
|
|
emphasis: {
|
|
emphasis: {
|
|
|
itemStyle: {
|
|
itemStyle: {
|
|
|
shadowBlur: 10,
|
|
shadowBlur: 10,
|
|
@@ -127,5 +134,6 @@ export function handleHeatmapPlotChartLogic(
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
];
|
|
];
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|