问题
I'm trying to get AmChart chart legends into one line, but without luck. Legends are separated (one for line).
Actual settings for from documentation http://docs.amcharts.com/3/javascriptcharts/AmLegend is
following.
"legend": {
"equalWidths": false,
//"periodValueText": "total: [[value.sum]]",
"position": "bottom",
"valueAlign": "left",
"labelWidth": 100,
"valueWidth": 200,
//"width": 100,
"align": "center"
},
I Would like to ask how to get all chart legends into one line?
Many Thanks for any advice.
回答1:
you can try legend{ "maxColumns": 1, }
回答2:
I think it auto resize follows width of div. Btw, You can change "valueWidth" lower.
回答3:
Try reducing "labelWidth" and "valueWidth" to fit just the content
来源:https://stackoverflow.com/questions/25844287/amchart-legend-in-one-line