我正在使用AmCharts创建一个饼图。我正在尝试更改图例lablelText以显示标题、百分比和值。我尝试了以下不起作用的方法:(这是传递给AmCharts.makeChart()方法的
"legend": {
"align": "center",
"position": "right",
"marginRight": 21,
"markerType": "circle",
"right": -4,
"labelText": "[[title]]: [[percents]]% $[[value]]",
},
发布于 2015-02-04 00:37:02
最后,我发现我应该使用valueText,而不是labelText,所以我可以改为这样:
"legend": {
"align": "center",
"position": "bottom",
"marginRight": 21,
"markerType": "circle",
"right": -4,
"labelText": "[[title]]",
"valueText": " $[[value]] [[percents]]%",
"valueWidth": 80,
"textClickEnabled": true
},
https://stackoverflow.com/questions/28307058
复制相似问题