Echarts去掉柱状图后的分割线和格式化y轴的数值

xAxis : [ 

            { 

             type : 'category', 

             splitLine:{ 

                               show:false

              },

            data: categories 

          } 

  ],

 yAxis : [ 

             { 

扫描二维码关注公众号,回复: 494345 查看本文章

               type : 'value', 

               axisLabel : { 

                                       formatter : '{value}%' 

                }, 

               splitLine:{ 

                      show:false 

               },

              data:data

               min:0, 

               max:100 

             } 

]

 splitLine:{ show:false},其中show用来控制splitLine是否显示,当show:true时,显示splitLine,当show:false时不显示splitLine。

formatter是用来控制数值的显示格式: '{value}%' } value 是对应的data的值后面加上%。


转载见网址:

http://blog.csdn.net/zhaodongning/article/details/43967479

猜你喜欢

转载自blog.csdn.net/fengsuiyingdong/article/details/75094621