如何让series和legend的颜色一致为指定颜色?echarts 折线配置项内容和展示

如何让series和legend的颜色一致为指定颜色?

配置项如下
      option = {
    title: {
        text: 'Awesome Chart'
    },
    legend:{
      data:['系列1','系列2']  
    },
    xAxis: {
        data: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
    },
    tooltip:{
      show:true  ,
      trigger: 'axis'
    },
    yAxis: {},
    series: [{
        name:'系列1',
        type: 'line',
        data:[220, 182, 191, 234, 290, 330, 310],
        
        itemStyle:{
            color:'#ffcc00'
        }
    },{
        name:'系列2',
        type: 'line',
        data:[223, 12, 11, 24, 20, 30, 31],
        symbol : 'none',
        lineStyle:{
              type: 'dotted',
        },
        itemStyle:{
           
            color:'#ff00CC'
        }
    }]
};
    
截图如下