diff --git a/nezha-fronted/src/components/charts/chart-list.vue b/nezha-fronted/src/components/charts/chart-list.vue index 899a5babd..c4301c5f1 100644 --- a/nezha-fronted/src/components/charts/chart-list.vue +++ b/nezha-fronted/src/components/charts/chart-list.vue @@ -836,14 +836,16 @@ if(chartInfo.type ==='pie'){ pieSeries={ type: 'pie', - radius: ['20%', '100%'], + radius: '100%', center: ['50%', '50%'], top:"20%", bottom:"20%", - roseType: 'radius', + // roseType: 'radius', minAngle:10, itemStyle: { - borderRadius: 5 + borderRadius: 5, + borderColor: '#fff', + borderWidth: 1 }, label: { show: false diff --git a/nezha-fronted/src/components/charts/chart-pie.vue b/nezha-fronted/src/components/charts/chart-pie.vue index 267161326..652bfdd96 100644 --- a/nezha-fronted/src/components/charts/chart-pie.vue +++ b/nezha-fronted/src/components/charts/chart-pie.vue @@ -597,13 +597,13 @@ export default { formatterFunc:function(params, ticket, callback){ return `
-
-
${this.legend[params.dataIndex].alias}
-
+
+
${this.legend[params.dataIndex].alias}
+
value
${params.value}
-
+
percent
${params.percent}%
diff --git a/nezha-fronted/src/components/charts/line-chart-block.vue b/nezha-fronted/src/components/charts/line-chart-block.vue index 8402c4454..a74b7195d 100644 --- a/nezha-fronted/src/components/charts/line-chart-block.vue +++ b/nezha-fronted/src/components/charts/line-chart-block.vue @@ -729,8 +729,9 @@ if(i===0){ let value=item.data[0]; let t_date = new Date(value); - str += bus.timeFormate(t_date) - str +=`
`; + str +=`
`; + str += bus.timeFormate(t_date); + str +=`
`; } let val =item.data[1]?parseFloat(Number(item.data[1]).toFixed(2)):''; if(val===0){ @@ -965,8 +966,9 @@ if(i===0){ let value=item.data[0]; let t_date = new Date(value); - str += bus.timeFormate(t_date) - str +=`
`; + str +=`
`; + str += bus.timeFormate(t_date); + str +=`
`; } let val = parseFloat(Number(item.data[1]).toFixed(2)); if(val===0){ @@ -1132,8 +1134,9 @@ if(i===0){ let value=item.data[0]; let t_date = new Date(value); - str += bus.timeFormate(t_date) - str +=`
`; + str +=`
`; + str += bus.timeFormate(t_date); + str +=`
`; } let val = parseFloat(Number(item.data[1]).toFixed(2)); if(val===0){