rui.jiang 7 månader sedan
förälder
incheckning
e18ae21983

+ 1 - 1
src/assets/js/constants/echarts-config/Heatmap.js

@@ -48,7 +48,7 @@ export const option = {
     orient: "vertical",
     right: 0,
     top: "center",
-    color: ["#1A285E", "#379CC2", "#D7EFB7"],
+    color: ["#5070DD", "#7890E5", "#FFFFFF"],
   },
   series: [
     {

+ 11 - 3
src/views/performance/components/custonAsCom/dragChart/components/chartConfig/form/chartLogic/modules/Heatmap.js

@@ -111,14 +111,21 @@ export function handleHeatmapPlotChartLogic(
       }
     }
 
-    // 生成热力图 series
+
+    // 生成热力图数据
     item.option.series = [
       {
         type: "heatmap",
         data: heatmapData,
         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: {
           itemStyle: {
             shadowBlur: 10,
@@ -127,5 +134,6 @@ export function handleHeatmapPlotChartLogic(
         },
       },
     ];
+
   }
 }