AmChart legend in one line

I am trying to get AmChart chart legends in one line, but with no luck. The legends are split (one for the line).

enter image description here

The actual settings from the documentation http://docs.amcharts.com/3/javascriptcharts/AmLegend is the 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 the chart legends in one line?

Thanks a lot for any advice.

+3


source to share


3 answers


I think it automatically resizes after the div. Btw, you can change the "valueWidth" below.



+1


source


Try decreasing "labelWidth" and "valueWidth" to fit only the content



+1


source


you can try the legend {"maxColumns": 1,}

0


source







All Articles