DorisOu commented on issue #9435: 关于series-lines.lineStyle.normal.width映射宽度 URL: https://github.com/apache/incubator-echarts/issues/9435#issuecomment-440517698 @cuijian-dexter 没有实现,应该怎么修改? var allData = { "citys": [{ "name": "黑龙江", "value": [126.661669, 45.742347, -198], "symbolSize": 8, "itemStyle": { "normal": { "color": "#58B3CC" } } }, { "name": "舒兰", "value": [126.965607, 44.406106, 1], "symbolSize": 2, "itemStyle": { "normal": { "color": "#F58158" } } }, { "name": "珠海", "value": [113.576726, 22.270715, 9], "symbolSize": 2, "itemStyle": { "normal": { "color": "#F58158" } } }], "moveLines": [{ "fromName": "黑龙江", "toName": "珠海", "coords": [ [126.661669, 45.742347], [113.576726, 22.270715] ] }, { "fromName": "黑龙江", "toName": "舒兰", "coords": [ [126.661669, 45.742347], [126.965607, 44.406106] ] }] }; option = { backgroundColor: '#404a59', title: { text: '朴姓人口迁徙图', left: 'center', textStyle: { color: '#fff' } }, legend: { show: false, orient: 'vertical', top: 'bottom', left: 'right', data: ['地点', '线路'], textStyle: { color: '#fff' } }, geo: { map: 'china', label: { emphasis: { show: false } }, roam: true, itemStyle: { normal: { areaColor: '#323c48', borderColor: '#404a59' }, emphasis: { areaColor: '#2a333d' } } }, series: [{ name: '地点', type: 'effectScatter', coordinateSystem: 'geo', zlevel: 2, rippleEffect: { brushType: 'stroke' }, label: { emphasis: { show: true, position: 'right', formatter: '{b}' } }, symbolSize: 2, showEffectOn: 'render', itemStyle: { normal: { color: '#46bee9' } }, data: allData.citys }, { name: '线路', type: 'lines', coordinateSystem: 'geo', zlevel: 2, large: true, effect: { show: true, constantSpeed: 30, symbol: 'pin', symbolSize: 3, trailLength: 0, }, data: [{ lineStyle: { normal: { width: 1, opacity: 0.2, curveness: 0.1, color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: '#58B3CC' }, { offset: 1, color: '#F58158' }], false) } } }, { lineStyle: { normal: { width: 20, opacity: 0.2, curveness: 0.1, color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: '#58B3CC' }, { offset: 1, color: '#F58158' }], false) } } }], data: allData.moveLines }] };
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
