| | |
| | | tooltip: { |
| | | trigger: 'item', |
| | | formatter: ' <span style="display: inline-block; margin-right: 4px; border-radius: 10px; width: 10px; height: 10px;background-color: #91cc75;"></span> {b0}<strong style="margin-left:10px">{c0}人</strong>', |
| | | backgroundColor: 'rgba(8, 56, 185, 0.9)', |
| | | borderColor: 'rgba(8, 56, 185, 0.9)', |
| | | textStyle: { |
| | | color: '#fff', |
| | | fontSize: fontSize(14) |
| | | } |
| | | }, |
| | |
| | | msg = `${params.marker}${params.name}<strong style="margin-left:10px">${msg}</strong>'` |
| | | return msg |
| | | }, |
| | | backgroundColor: 'rgba(8, 56, 185, 0.9)', |
| | | borderColor: 'rgba(8, 56, 185, 0.9)', |
| | | textStyle: { |
| | | color: '#fff', |
| | | fontSize: fontSize(14) |
| | | } |
| | | }, |
| | |
| | | itemStyle: { |
| | | normal: { |
| | | barBorderRadius: [0, 30, 30, 0], |
| | | color: function (params) { |
| | | var num = myColor.length |
| | | return myColor[params.dataIndex % num] |
| | | }, |
| | | // color: function (params) { |
| | | // var num = myColor.length |
| | | // return myColor[params.dataIndex % num] |
| | | // }, |
| | | color: '#ed7c2f' |
| | | } |
| | | }, |
| | | }, |
| | |
| | | formatter: params => { |
| | | return `${params.marker} ${params.name}: ${params.value} 个` |
| | | }, |
| | | backgroundColor: 'rgba(8, 56, 185, 0.9)', |
| | | borderColor: 'rgba(8, 56, 185, 0.9)', |
| | | textStyle: { |
| | | color: '#fff', |
| | | fontSize: fontSize(14) |
| | | } |
| | | }, |
| | |
| | | itemStyle: { |
| | | normal: { |
| | | barBorderRadius: [30, 30, 0, 0], |
| | | color: function (params) { |
| | | var num = Math.floor(Math.random() * (myLandColors.length - 1) + 1) |
| | | return myLandColors[params.dataIndex % num] |
| | | }, |
| | | // color: function (params) { |
| | | // var num = Math.floor(Math.random() * (myLandColors.length - 1) + 1) |
| | | // return myLandColors[params.dataIndex % num] |
| | | // }, |
| | | } |
| | | }, |
| | | } |