Просмотр исходного кода

饼形图折线上加次数和百分比

wangjianguo 8 лет назад
Родитель
Сommit
145d347e62

+ 10 - 1
VisualInspection/js/statistics/personal_data_statistics.js

@@ -364,7 +364,16 @@ $(function(){
 						type:'pie',
 						radius : '65%',
 						center: ['50%', '50%'],
-						data:array_check_type
+						data:array_check_type,
+						itemStyle:{ 
+						normal:{ 
+							label:{ 
+								show: true, 
+								formatter: '{b} : {c} ({d}%)'  
+							}, 
+							labelLine :{show:true} 
+							} 
+						} 
 					}
 				]
 			};

+ 21 - 3
VisualInspection/js/statistics/road_manage_statistics.js

@@ -529,7 +529,16 @@ $(function(){
 						type:'pie',
 						radius : '65%',
 						center: ['50%', '50%'],
-						data:array_points
+						data:array_points,
+						itemStyle:{ 
+						normal:{ 
+							label:{ 
+								show: true, 
+								formatter: '{b} : {c} ({d}%)'  
+							}, 
+							labelLine :{show:true} 
+							} 
+						} 
 					}
 				]
 			};
@@ -747,9 +756,18 @@ $(function(){
 					{
 						name:'访问来源',
 						type:'pie',
-						radius : '65%',
+						radius : '55%',
 						center: ['50%', '50%'],
-						data:array_check_type
+						data:array_check_type,
+						itemStyle:{ 
+						normal:{ 
+							label:{ 
+								show: true, 
+								formatter: '{b} : {c} ({d}%)'  
+							}, 
+							labelLine :{show:true} 
+							} 
+						} 
 					}
 				]
 			};

+ 21 - 3
VisualInspection/js/statistics/toll_station_statistics.js

@@ -641,7 +641,16 @@ $(function(){
 						type:'pie',
 						radius : '65%',
 						center: ['50%', '50%'],
-						data:array_points
+						data:array_points,
+						itemStyle:{ 
+						normal:{ 
+							label:{ 
+								show: true, 
+								formatter: '{b} : {c} ({d}%)'  
+							}, 
+							labelLine :{show:true} 
+							} 
+						} 
 					}
 				]
 			};
@@ -830,9 +839,18 @@ $(function(){
 					{
 						name:'访问来源',
 						type:'pie',
-						radius : '65%',
+						radius : '55%',
 						center: ['50%', '50%'],
-						data:array_check_type
+						data:array_check_type,
+						itemStyle:{ 
+						normal:{ 
+							label:{ 
+								show: true, 
+								formatter: '{b} : {c} ({d}%)'  
+							}, 
+							labelLine :{show:true} 
+							} 
+						} 
 					}
 				]
 			};

+ 21 - 3
VisualInspection/js/statistics/total_company_statistics.js

@@ -470,7 +470,16 @@ $(function(){
 						type:'pie',
 						radius : '65%',
 						center: ['50%', '50%'],
-						data:array_points
+						data:array_points,
+						itemStyle:{ 
+						normal:{ 
+							label:{ 
+								show: true, 
+								formatter: '{b} : {c} ({d}%)'  
+							}, 
+							labelLine :{show:true} 
+							} 
+						} 
 					}
 				]
 			};
@@ -613,9 +622,18 @@ $(function(){
 					{
 						name:'访问来源',
 						type:'pie',
-						radius : '65%',
+						radius : '55%',
 						center: ['50%', '50%'],
-						data:array_check_type
+						data:array_check_type,
+						itemStyle:{ 
+						normal:{ 
+							label:{ 
+								show: true, 
+								formatter: '{b} : {c} ({d}%)'  
+							}, 
+							labelLine :{show:true} 
+							} 
+						} 
 					}
 				]
 			};