|
|
@@ -997,9 +997,24 @@ $(function() {
|
|
|
name: dept,
|
|
|
type: 'bar',
|
|
|
stack: '上月',
|
|
|
- barWidth: 10,
|
|
|
+ // barWidth: 10,
|
|
|
data: data_a
|
|
|
}
|
|
|
+ if (j == array_all_deptname.length - 1) {
|
|
|
+ d_tt['itemStyle'] = {
|
|
|
+
|
|
|
+ normal: {
|
|
|
+ label: {
|
|
|
+ show: true,
|
|
|
+ position: 'top',
|
|
|
+ formatter: '上月',
|
|
|
+ textStyle: {
|
|
|
+ color: 'blue'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
sdata.push(d_tt);
|
|
|
} else {
|
|
|
var data_a = new Array();
|
|
|
@@ -1017,15 +1032,25 @@ $(function() {
|
|
|
name: dept,
|
|
|
type: 'bar',
|
|
|
stack: '上月',
|
|
|
- barWidth: 10,
|
|
|
+ // barWidth: 10,
|
|
|
data: data_a
|
|
|
}
|
|
|
+ if (j == array_all_deptname.length - 1) {
|
|
|
+ d_tt['itemStyle'] = {
|
|
|
+ normal: {
|
|
|
+ label: {
|
|
|
+ show: true,
|
|
|
+ position: 'top',
|
|
|
+ formatter: '上月',
|
|
|
+ textStyle: {
|
|
|
+ color: 'blue'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
sdata.push(d_tt);
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
if (map_month_data.get(dept) != null) {
|
|
|
var data_a = new Array();
|
|
|
var d_t = map_month_data.get(dept);
|
|
|
@@ -1045,6 +1070,21 @@ $(function() {
|
|
|
stack: '本月',
|
|
|
data: data_a
|
|
|
}
|
|
|
+ if (j == array_all_deptname.length - 1) {
|
|
|
+ d_tt['itemStyle'] = {
|
|
|
+
|
|
|
+ normal: {
|
|
|
+ label: {
|
|
|
+ show: true,
|
|
|
+ position: 'top',
|
|
|
+ formatter: '本月',
|
|
|
+ textStyle: {
|
|
|
+ color: 'red'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
sdata.push(d_tt);
|
|
|
} else {
|
|
|
var data_a = new Array();
|
|
|
@@ -1063,37 +1103,24 @@ $(function() {
|
|
|
stack: '本月',
|
|
|
data: data_a
|
|
|
}
|
|
|
+ if (j == array_all_deptname.length - 1) {
|
|
|
+ d_tt['itemStyle'] = {
|
|
|
+ normal: {
|
|
|
+ label: {
|
|
|
+ show: true,
|
|
|
+ position: 'top',
|
|
|
+ formatter: '本月',
|
|
|
+ textStyle: {
|
|
|
+ color: 'red'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
sdata.push(d_tt);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- var d_s = new Array();
|
|
|
- t_map_c.forEach(function(value, key) {
|
|
|
- var d = {
|
|
|
- name: "本月",
|
|
|
- value: value,
|
|
|
- xAxis: key,
|
|
|
- yAxis: value
|
|
|
- }
|
|
|
- d_s.push(d);
|
|
|
- });
|
|
|
- t_map_p.forEach(function(value, key) {
|
|
|
- console.log(key)
|
|
|
- var d = {
|
|
|
- name: "上月",
|
|
|
- value: value,
|
|
|
- xAxis: key == 0 ? -0.01 : (key - 0.3),
|
|
|
- yAxis: value
|
|
|
- }
|
|
|
- d_s.push(d);
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- sdata[sdata.length - 1]['markPoint'] = {
|
|
|
- data: d_s
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
var namelist = new Array();
|
|
|
for (var i = 0; i < array_all_name.length; i++) {
|