--no commit message
Showing
3 changed files
with
35 additions
and
26 deletions
| ... | @@ -10,8 +10,8 @@ export default { | ... | @@ -10,8 +10,8 @@ export default { |
| 10 | data () { | 10 | data () { |
| 11 | return { | 11 | return { |
| 12 | options: {}, | 12 | options: {}, |
| 13 | max: "9000", //最大value值 | 13 | max: "100", //最大value值 |
| 14 | min: "500", // 最小value值 | 14 | min: "1", // 最小value值 |
| 15 | }; | 15 | }; |
| 16 | }, | 16 | }, |
| 17 | components: { | 17 | components: { |
| ... | @@ -90,7 +90,7 @@ export default { | ... | @@ -90,7 +90,7 @@ export default { |
| 90 | return scatterData; | 90 | return scatterData; |
| 91 | }; | 91 | }; |
| 92 | this.options = { | 92 | this.options = { |
| 93 | 93 | backgroundColor: 'rgba(0,0,0,1)', | |
| 94 | showLegendSymbol: true, | 94 | showLegendSymbol: true, |
| 95 | tooltip: { | 95 | tooltip: { |
| 96 | trigger: 'item', | 96 | trigger: 'item', |
| ... | @@ -117,10 +117,10 @@ export default { | ... | @@ -117,10 +117,10 @@ export default { |
| 117 | itemWidth: 20, // 每个图元的宽度 | 117 | itemWidth: 20, // 每个图元的宽度 |
| 118 | itemGap: 2, // 每两个图元之间的间隔距离,单位为px | 118 | itemGap: 2, // 每两个图元之间的间隔距离,单位为px |
| 119 | pieces: [ // 自定义每一段的范围,以及每一段的文字 | 119 | pieces: [ // 自定义每一段的范围,以及每一段的文字 |
| 120 | { gte: 6000, label: '6000以上', color: '#035cf5' }, // 不指定 max,表示 max 为无限大(Infinity)。 | 120 | { gte: 100, label: '100以上', color: '#035cf5' }, // 不指定 max,表示 max 为无限大(Infinity)。 |
| 121 | { gte: 2000, lte: 6000, label: '2000-6000', color: '#3375e4' }, | 121 | { gte: 50, lte: 6000, label: '20-100', color: '#3375e4' }, |
| 122 | { gte: 1000, lte: 2000, label: '1000-2000', color: '#6797ef' }, | 122 | { gte: 20, lte: 2000, label: '1-200', color: '#6797ef' }, |
| 123 | { gte: 500, lte: 1000, label: '500-1000', color: '#96b5ef' }, | 123 | { gte: 1, lte: 1000, label: '1-20', color: '#96b5ef' }, |
| 124 | ], | 124 | ], |
| 125 | textStyle: { | 125 | textStyle: { |
| 126 | color: '#737373' | 126 | color: '#737373' |
| ... | @@ -168,26 +168,36 @@ export default { | ... | @@ -168,26 +168,36 @@ export default { |
| 168 | data: newData, | 168 | data: newData, |
| 169 | }, | 169 | }, |
| 170 | { | 170 | { |
| 171 | type: 'effectScatter', | 171 | name: 'MAP', |
| 172 | coordinateSystem: 'geo', | 172 | type: 'map3D', |
| 173 | symbolSize: 7, | 173 | map: name, |
| 174 | effectType: 'ripple', | 174 | label: { |
| 175 | legendHoverLink: false, | 175 | show: true, |
| 176 | showEffectOn: 'render', | 176 | textStyle: { |
| 177 | rippleEffect: { | 177 | color: '#fff', |
| 178 | period: 4, | ||
| 179 | scale: 2.5, | ||
| 180 | brushType: 'stroke', | ||
| 181 | }, | ||
| 182 | zlevel: 1, | ||
| 183 | itemStyle: { | ||
| 184 | normal: { | ||
| 185 | color: '#99FBFE', | ||
| 186 | shadowBlur: 5, | ||
| 187 | shadowColor: '#fff', | ||
| 188 | }, | 178 | }, |
| 179 | formatter: (params) => { | ||
| 180 | if (newData.find((ele) => ele.name == params.name)) { | ||
| 181 | return params.name + '\n' + newData.find((ele) => ele.name == params.name).value; | ||
| 182 | } else { | ||
| 183 | return params.name; | ||
| 184 | } | ||
| 185 | }, | ||
| 186 | borderRadius: 4, | ||
| 189 | }, | 187 | }, |
| 190 | data: convertData(seriesData), | 188 | itemStyle: { |
| 189 | color: '#144a69', | ||
| 190 | // shadowColor: 'rgba(0,243,255,0.2)', | ||
| 191 | // shadowOffsetY: 5, | ||
| 192 | // shadowBlur: 10, | ||
| 193 | borderColor: '#06767c', | ||
| 194 | borderWidth: 1, | ||
| 195 | // opacity: 1, | ||
| 196 | }, | ||
| 197 | |||
| 198 | aspectScale: 0.9, //长宽比 | ||
| 199 | selectedMode: false, //是否允许选中多个区域 | ||
| 200 | data: newData, | ||
| 191 | }, | 201 | }, |
| 192 | ], | 202 | ], |
| 193 | }; | 203 | }; | ... | ... |
-
Please register or sign in to post a comment