2017-04-26 123 views

回答

0

联想标志忽略默认bulletColor。您有两个选项来更改标记颜色:

1)设置lineColor以更改您的图例标记和子弹颜色,而不是使用bulletColor

var chart = AmCharts.makeChart("chartdiv", { 
    // .. 
    "graphs": [{ 
    "lineColor": "#000088", 
    // ... omitted .. 
    }, 
    // ... etc 
    ], 
    // ... 
}); 

Demo

2)如果你喜欢使用bulletColor,你可以设置useGraphSettings真在你的传奇,这使得你的传奇使用bulletColor但改变你的标志物,而不是子弹箱。

var chart = AmCharts.makeChart("chartdiv", { 
    // ... 
    "legend": { 
    "useGraphSettings": true, 
    // ... 
    }, 
    // rest stays the same 
}); 

Demo

+0

非常感谢你 – user7791702

相关问题