随笔分类 -  Echarts

摘要:{ name:'2007', type:'bar', data:["","",""]} 解决办法: 写成data:["","",""],因为默认为data:["-","-","-"] 阅读全文
posted @ 2016-11-27 18:06 景话宇意 阅读(9086) 评论(0) 推荐(0)
摘要:tooltip : { trigger: 'axis', axisPointer : { // 坐标轴指示器,坐标轴触发有效 type : 'shadow' // 默认为直线,可选为:'line' | 'shadow' }, textStyle:{ align:'left' }} 解决办法:tool 阅读全文
posted @ 2016-11-27 18:05 景话宇意 阅读(14409) 评论(0) 推荐(1)
摘要:xAxis : [ { type : 'category', data : ['采矿业','制造业','电力热力燃气及水生产和供应业','建筑业'], axisTick: { alignWithLabel: true }, axisLabel:{ interval:0 } }] 解决办法:x轴加上如 阅读全文
posted @ 2016-11-27 18:04 景话宇意 阅读(8595) 评论(0) 推荐(0)
摘要:1) Echarts x轴显示不全 解决办法:x轴加上如下代码。 axisLabel:{ interval:0 } 2) tooltip文字没有左对齐 解决办法:tooltip加入如下代码。 textStyle:{ align:'left' } 3) data数据为空时,显示“-” 解决办法: 写成 阅读全文
posted @ 2016-11-27 17:58 景话宇意 阅读(415) 评论(0) 推荐(0)