Echarts显示随机颜色的函数解决方案

  color: function() {
                    return 'rgb(' + [
                        Math.round(Math.random() * 160),
                        Math.round(Math.random() * 160),
                        Math.round(Math.random() * 160)
                    ].join(',') + ')';
                }

Done!

posted on 2020-03-24 10:40  漏刻有时  阅读(125)  评论(0)    收藏  举报