图表统计插件echarts让柱子随机色的设置方法
series: [{ itemStyle: { normal: { color: function(d){ return "#"+Math.floor(Math.random()*(256*256*256-1)).toString(16); } } }, }, }]
本文来源:功夫码(gongfuma.com)
声明:本文系功夫码原创稿件,版权属[功夫码 gongfuma.com]所有。
未经授权不得转载,已经协议授权的媒体下载使用时须注明"稿件来源:功夫码",违者将依法追究责任。