Przeglądaj źródła

toolbox图形组件

liujiejie 3 miesięcy temu
rodzic
commit
8516c3ccc8

+ 1 - 1
src/views/performance/components/custonAsCom/dragChart/components/chartConfig/form/chartLogic/modules/scatter.js

@@ -227,7 +227,7 @@ export function handleScatterChartLogic(
     ...legendPosition,
     show: formLabelAlign.enableLegend ?? item.option.legend.show,
   };
-  console.log(item.option.color, "item.option.color");
+
   item.option.color = item.option.color.map((colorItem, colorInd) => {
     return formLabelAlign?.dataColor?.[colorInd] ?? colorItem;
   });

+ 2 - 2
src/views/performance/components/custonAsCom/dragChart/components/chartConfig/form/configFn.js

@@ -1,7 +1,7 @@
 /*
  * @Author: your name
  * @Date: 2024-11-12 09:27:50
- * @LastEditTime: 2025-08-29 14:20:39
+ * @LastEditTime: 2025-08-29 15:34:11
  * @LastEditors: bogon
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/views/performance/components/custonAsCom/dragChart/components/chartConfig/form/configFn.js
@@ -28,6 +28,7 @@ export const getFormattedSeries = (data, chartType) => {
     series.push({
       name: item.label,
       type: chartType === "lineHighlight" ? "line" : chartType,
+      smooth: chartType === "lineHighlight" ? true : false,
       progressiveThreshold: 3000, // 当数据量超过3000时启用渐进式渲染
       progressive: true, // 启用渐进式渲染
       renderMode: "webgl", // 启用 WebGL 渲染
@@ -40,7 +41,6 @@ export const getFormattedSeries = (data, chartType) => {
           { type: "min", name: "Min" },
         ],
       },
-
       markLine: {
         data: [{ type: "average", name: "Avg" }],
       },

+ 2 - 4
src/views/performance/components/custonAsCom/dragChart/components/chartConfig/form/toolbox.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2025-08-14 11:28:28
- * @LastEditTime: 2025-08-29 15:11:43
+ * @LastEditTime: 2025-08-29 15:30:25
  * @LastEditors: bogon
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/views/performance/components/custonAsCom/dragChart/components/chartConfig/form/toolbox.vue
@@ -169,6 +169,7 @@ import {
   handlHorizontalStackedBar1ChartLogic,
   handleFunnelPlot2Chart,
 } from "./chartLogic/index";
+import { constructNow } from "date-fns";
 export default {
   name: "toolbox",
   props: {
@@ -227,7 +228,6 @@ export default {
           "Heatmap",
         ].includes(type)
       ) {
-        console.log(Ydata, "filteredYData");
         return Ydata;
       }
       return []; // 默认返回空数组
@@ -245,7 +245,6 @@ export default {
     },
   },
   mounted() {
-    console.log("toolbox页面");
     this.changeData();
   },
   methods: {
@@ -268,7 +267,6 @@ export default {
           dataColor: [],
         });
         // 查找是否存在数据
-        console.log(this.curEdit, "this.curEdit.option");
       } else {
         this.$message.warning("请选择一个图表进行编辑");
       }