增加Amcharts中饼图的大小

Hel*_*Man 5 javascript amcharts

我目前正在使用amchart版本3生成饼图。它在中心显示饼图,并且尺寸很小。如何增加尺寸?

这是我的代码:

AmCharts.makeChart("chartdiv",
        {
        "type": "pie",
        "pathToImages": "classes/amcharts/images/",
        "balloonText": "[[title]]<br><span style='font-size:14px'><b>[[value]]</b> ([[percents]]%)</span>",
        "titleField": "type",
        "valueField": "number",
        "fontSize": 14,
        "marginLeft": 10,
        "marginRight": 10,
        "marginBottom": 10,
        "marginTop": 10,
        "theme": "light",
        "allLabels": [],
        "balloon": {},
        "titles": [
        {
            "text": "Issue Statistics",
            "size": 18
        }
        ],
        "dataProvider": [
        {
        "type": "Open",
        "number": op
        },
        {
        "type": "Closed",
        "number": cl
        },
        {
        "type": "Deferred",
        "number": df
        },
        {
        "type": "Vendor",
        "number": ve
        },
        {
        "type": "FAQ",
        "number": fq
        },
    ]
    }
);
Run Code Online (Sandbox Code Playgroud)

我尝试使用marginbottom和其他margins属性,如下所示:

http://docs.amcharts.com/3/javascriptcharts/AmPieChart
Run Code Online (Sandbox Code Playgroud)

但仍然没有奏效。

小智 6

AmCharts.makeChart("chartdiv",
  {
    "type": "pie",
    "radius": 100,
    "fontSize": 14
  }
);
Run Code Online (Sandbox Code Playgroud)

设置“半径” ...


Hel*_*Man -1

我忘了添加这个:

"autoMargins": false,
Run Code Online (Sandbox Code Playgroud)

成功了!