G2linkweb opened a new issue #9973: map地图使用dataset(x、y、s),更改s不生效 URL: https://github.com/apache/incubator-echarts/issues/9973 <!-- Please Use https://ecomfe.github.io/echarts-issue-helper to create the issue. Otherwise, it will be closed immediately. Questions in the form of *How to use ...* should be at Stack Overflow rather than GitHub issue list. 请注意,所有 issue 必须由 https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn 创建,不然将会被直接关闭。 Issues 中不要问「如何使用 ECharts 实现……功能」的问题,相关问题请到 SegmentFault 或 Stack Overflow 提问,详见上面的链接。 --> This issue is not created by [echarts-issue-helper](https://ecomfe.github.io/echarts-issue-helper) and will be soon closed. this is my code ,I used dataset in map, but when I change 's' in dataset ,it don't work,could you help me? option = { title : { text: 'iphone销量', subtext: '纯属虚构', left: 'center', show:false }, // backgroundColor:'rgba(255, 255, 255, 1)', tooltip : { trigger: 'item' }, legend: { orient: 'vertical', left: 'left', // data:['iphone3','iphone4','iphone5'], show:false }, visualMap: { min: 0, max: 2500, show:false, inRange: { color: [ "#05ccff", "#447bcb", "#474cb0", "#774aa9", ] }, }, dataset: { // dimensions, source: [ {x: '北京',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '天津',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '上海',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '重庆',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '河北',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '河南',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '云南',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '辽宁',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '黑龙江',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '湖南',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '安徽',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '山东',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '新疆',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '江苏',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '浙江',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '江西',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '湖北',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '广西',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '甘肃',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '山西',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '内蒙古',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '陕西',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '吉林',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '福建',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '贵州',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '广东',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '青海',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '西藏',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '四川',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '宁夏',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '海南',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '台湾',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '香港',y: Math.round(Math.random()*1000),s:'iphone3'}, {x: '澳门',y: Math.round(Math.random()*1000),s:'iphone3'}, ] }, series : [ { // name: 'iphone3', type: 'map', mapType: 'china', label: { normal: { show: false }, emphasis: { show: true } }, itemStyle:{ normal:{ areaColor: 'rgba(200, 211, 255, 1)', // areaColor:'#fff', // opacity:1, borderColor:'#eee' }, emphasis:{ } }, markPoint:{ symbol: 'path://M512 39.384615l169.353846 295.384615 342.646154 63.015385-240.246154 248.123077L827.076923 984.615385l-315.076923-145.723077L196.923077 984.615385l43.323077-334.769231L0 401.723077l342.646154-63.015385L512 39.384615', symbolSize: 12,//图形大小 label: { normal: { show: true, }, emphasis: { show: true, } }, itemStyle: { normal: { color: 'rgba(255,252,81,1)' } }, data:[ { name: "北京", coord: [ 116.33, 39.99 ], runConut: '537', num: '234' }, ] }, }, ] };
---------------------------------------------------------------- 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]
