Ka-Houl opened a new issue #10749: echarts3.*后的版本,雷达图不支持展示单个维度的数据 URL: https://github.com/apache/incubator-echarts/issues/10749 option = { title: { text: '基础雷达图' }, tooltip: {}, legend: { data: ['预算分配(Allocated Budget)', '实际开销(Actual Spending)'] }, radar: { // shape: 'circle', indicator: [ { name: '销售(sales)', max: 6500}, { name: '管理(Administration)', max: 16000}, { name: '信息技术(Information Techology)', max: 30000}, { name: '客服(Customer Support)', max: 38000}, { name: '研发(Development)', max: 52000}, { name: '市场(Marketing)', max: 25000} ] }, series: [{ name: '预算 vs 开销(Budget vs spending)', type: 'radar', // areaStyle: {normal: {}}, data : [ { value : [4300, 10000, 28000, 35000, 50000, 19000], name : '预算分配(Allocated Budget)' }, { value : [5000, 14000, 28000, 31000, 42000, 21000], name : '实际开销(Actual Spending)' } ] }] }; 如上述的option,在3.0版本中,tooltip的设置只能展示该数据在所有维度上的数据,3.0的配置项如上; 而在echarts2.0版本中,反而能展示单个维度上的数据 2.0的配置项如下 option = { title : { text: '预算 vs 开销(Budget vs spending)', subtext: '纯属虚构' }, tooltip : { trigger: 'axis' }, legend: { orient : 'vertical', x : 'right', y : 'bottom', data:['预算分配(Allocated Budget)','实际开销(Actual Spending)'] }, toolbox: { show : true, feature : { mark : {show: true}, dataView : {show: true, readOnly: false}, restore : {show: true}, saveAsImage : {show: true} } }, polar : [ { indicator : [ { text: '销售(sales)', max: 6000}, { text: '管理(Administration)', max: 16000}, { text: '信息技术(Information Techology)', max: 30000}, { text: '客服(Customer Support)', max: 38000}, { text: '研发(Development)', max: 52000}, { text: '市场(Marketing)', max: 25000} ] } ], calculable : true, series : [ { name: '预算 vs 开销(Budget vs spending)', type: 'radar', data : [ { value : [4300, 10000, 28000, 35000, 50000, 19000], name : '预算分配(Allocated Budget)' }, { value : [5000, 14000, 28000, 31000, 42000, 21000], name : '实际开销(Actual Spending)' } ] } ] };
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to 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]
