• legend的颜色是在option里面直接定义的color数组,有几个图例就在color里面写几个颜色值。
var option = {

color:'#657DE9',

tooltip: {
trigger: "axis",
axisPointer: {
// 坐标轴指示器,坐标轴触发有效
type: "shadow" // 默认为直线,可选为:'line' | 'shadow'
}
},

grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},

legend: {
borderColor:'#657DE9',
textStyle: {
color: '#657DE9',
},
data: ["线下投注的设备必须和上次登录的设备一致(账号)"]
},
}