看版
Showing
1 changed file
with
20 additions
and
4 deletions
| ... | @@ -1262,7 +1262,11 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => { | ... | @@ -1262,7 +1262,11 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => { |
| 1262 | type: 'bar', | 1262 | type: 'bar', |
| 1263 | barGap: 0, | 1263 | barGap: 0, |
| 1264 | emphasis: { | 1264 | emphasis: { |
| 1265 | focus: 'series' | 1265 | focus: 'series', |
| 1266 | itemStyle: { | ||
| 1267 | opacity: 1, | ||
| 1268 | // color: 'rgba(65, 105, 225, 0.8)', // 保持颜色不变 | ||
| 1269 | } | ||
| 1266 | }, | 1270 | }, |
| 1267 | // data: [30, 332, 301, 334, 390, 330, 320, 320, 332, 301, 334, 390], | 1271 | // data: [30, 332, 301, 334, 390, 330, 320, 320, 332, 301, 334, 390], |
| 1268 | // data: listHai, | 1272 | // data: listHai, |
| ... | @@ -1285,7 +1289,11 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => { | ... | @@ -1285,7 +1289,11 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => { |
| 1285 | type: 'bar', | 1289 | type: 'bar', |
| 1286 | barGap: 0, | 1290 | barGap: 0, |
| 1287 | emphasis: { | 1291 | emphasis: { |
| 1288 | focus: 'series' | 1292 | focus: 'series', |
| 1293 | itemStyle: { | ||
| 1294 | opacity: 1, | ||
| 1295 | // color: 'rgba(65, 105, 225, 0.8)', // 保持颜色不变 | ||
| 1296 | } | ||
| 1289 | }, | 1297 | }, |
| 1290 | // data: [320, 332, 301, 334, 390, 330, 320, 320, 332, 301, 334, 390], | 1298 | // data: [320, 332, 301, 334, 390, 330, 320, 320, 332, 301, 334, 390], |
| 1291 | data: dataList, | 1299 | data: dataList, |
| ... | @@ -1324,7 +1332,9 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => { | ... | @@ -1324,7 +1332,9 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => { |
| 1324 | ]) | 1332 | ]) |
| 1325 | }, | 1333 | }, |
| 1326 | emphasis: { | 1334 | emphasis: { |
| 1327 | focus: 'series' | 1335 | focus: 'series', |
| 1336 | label: false, | ||
| 1337 | disabled: true, | ||
| 1328 | }, | 1338 | }, |
| 1329 | data: arr1, | 1339 | data: arr1, |
| 1330 | label: { | 1340 | label: { |
| ... | @@ -1339,6 +1349,8 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => { | ... | @@ -1339,6 +1349,8 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => { |
| 1339 | }, | 1349 | }, |
| 1340 | fontSize: 12, | 1350 | fontSize: 12, |
| 1341 | color: 'rgb(1, 191, 236)', | 1351 | color: 'rgb(1, 191, 236)', |
| 1352 | opacity: 1, // 关键:取消透明度 | ||
| 1353 | shadowBlur: 0 // 取消阴影 | ||
| 1342 | } | 1354 | } |
| 1343 | }, | 1355 | }, |
| 1344 | { | 1356 | { |
| ... | @@ -1363,7 +1375,9 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => { | ... | @@ -1363,7 +1375,9 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => { |
| 1363 | ]) | 1375 | ]) |
| 1364 | }, | 1376 | }, |
| 1365 | emphasis: { | 1377 | emphasis: { |
| 1366 | focus: 'series' | 1378 | focus: 'series', |
| 1379 | label: false, | ||
| 1380 | disabled: true, | ||
| 1367 | }, | 1381 | }, |
| 1368 | data: arr2, | 1382 | data: arr2, |
| 1369 | label: { | 1383 | label: { |
| ... | @@ -1378,6 +1392,8 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => { | ... | @@ -1378,6 +1392,8 @@ const handelZhu4 = (listX, dataList, arr1, arr2) => { |
| 1378 | }, | 1392 | }, |
| 1379 | fontSize: 12, | 1393 | fontSize: 12, |
| 1380 | color: 'rgba(21, 219, 203, 1)', | 1394 | color: 'rgba(21, 219, 203, 1)', |
| 1395 | opacity: 1, // 关键:取消透明度 | ||
| 1396 | shadowBlur: 0 // 取消阴影 | ||
| 1381 | } | 1397 | } |
| 1382 | }, | 1398 | }, |
| 1383 | ] | 1399 | ] | ... | ... |
-
Please register or sign in to post a comment