Ver Fonte

20230616

YangJian0701 há 1 ano atrás
pai
commit
0f94c3491d

+ 9 - 4
src/components/highcharts-h.vue

@@ -94,9 +94,9 @@ const emit = defineEmits(['setTimeFun']);
 const chartOptions1 = reactive({
     xAxis: {
         type: 'datetime',
-        labels: {
-            format: '{value:%Y-%m-%d %H:%M:%S}',
-        },
+        // labels: {
+        //     format: '{value:%Y-%m-%d %H:%M:%S}',
+        // },
     },
     time: {
         useUTC: false
@@ -138,7 +138,12 @@ const chartOptions1 = reactive({
     },
     plotOptions: {
         series: {
-            turboThreshold: 0 //性能阈值检查,默认值为1000,当数据量超过这个值就会报错;如果需要关掉性能阈值检查,可以将此参数设置为 0
+            turboThreshold: 0, //性能阈值检查,默认值为1000,当数据量超过这个值就会报错;如果需要关掉性能阈值检查,可以将此参数设置为 0
+            marker: {
+                enabled : true,
+                radius : 3,
+                // symbol: 'url(https://www.highcharts.com/samples/graphics/sun.png)'
+            },
         },
     },
 

+ 15 - 4
src/components/highcharts-t.vue

@@ -93,9 +93,9 @@ const emit = defineEmits(['setTimeFun']);
 const chartOptions1 = reactive({
     xAxis: {
         type: 'datetime',
-        labels: {
-            format: '{value:%Y-%m-%d %H:%M:%S}',
-        },
+        // labels: {
+        //     format: '{value:%Y-%m-%d %H:%M:%S}',
+        // },
     },
     time: {
         useUTC: false
@@ -137,7 +137,18 @@ const chartOptions1 = reactive({
     },
     plotOptions: {
         series: {
-            turboThreshold: 0 //性能阈值检查,默认值为1000,当数据量超过这个值就会报错;如果需要关掉性能阈值检查,可以将此参数设置为 0
+            turboThreshold: 0, //性能阈值检查,默认值为1000,当数据量超过这个值就会报错;如果需要关掉性能阈值检查,可以将此参数设置为 0
+            // marker: {//鼠标放上去的取消小圆点
+            //     radius: 6, //曲线点半径,默认是4
+            //     smooth:3,
+            //     symbol: 'triangle' //曲线点类型:”circle”, “square”, “diamond”, “triangle”,”triangle-down”,默认是”circle”
+            // }
+            marker: {
+                enabled : true,
+                radius : 3,
+                // symbol: 'url(https://www.highcharts.com/samples/graphics/sun.png)'
+            },
+           
         },
     },
 

+ 1 - 0
src/views/data/edit/index.vue

@@ -327,6 +327,7 @@ const convertDataFun = (array) => {
   let objData = {
     name: '',
     data: [],
+   
     events: {
       click(e) {
         console.log('点击',e.point.x)