AmChart legend in one line

只愿长相守 提交于 2019-12-22 09:26:14

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!