Amcharts - 每行的特定颜色

时间:2015-09-29 12:14:33

标签: javascript amcharts

我使用下面的图表:http://www.amcharts.com/demos/reversed-value-axis/

现在我想手动设置每一行的颜色。 例如:“英国” - 颜色为#ff0000

的行

1 个答案:

答案 0 :(得分:0)

您可以在图形数组中使用lineColor,如:

{
    "balloonText": "place taken by UK in [[category]]: [[value]]",
    "bullet": "round",
    "title": "United Kingdom",
    "valueField": "uk",
    "fillAlphas": 0,

    "lineColor": "#ff0000"
}

http://jsfiddle.net/rgtc9djp/