简体   繁体   中英

Amcharts - Specific color for each line

I use the following chart: http://www.amcharts.com/demos/reversed-value-axis/

Now I want to set the color for each line manually. For example: "United Kingdom" - line with color #ff0000

You can use lineColor inside graphs array like:

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

    "lineColor": "#ff0000"
}

http://jsfiddle.net/rgtc9djp/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM