【问题标题】:How to make legent in pie amchart?如何在饼图amchart中制作图例?
【发布时间】:2016-07-15 08:56:51
【问题描述】:

演示和我的代码是这样的:https://jsfiddle.net/oscar11/4qdan7k7/6/

我使用:

"legend": {
   "useGraphSettings": true
}

但它不起作用。结果如下:

有什么办法可以解决我的问题吗?

【问题讨论】:

  • 请同时提供对预期内容的描述。

标签: javascript jquery charts amcharts


【解决方案1】:

您应该删除useGraphSettings,因为您的设置中没有graphs

AmCharts.makeChart("chartdiv", {
  "type": "pie",
  "theme": "light",
  "dataProvider": chartData,
  "valueField": "litres",
  "titleField": "country",
  "export": {
    "enabled": true
  },
  "legend": {},
});

jsfiddle

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-09-09
    • 1970-01-01
    • 1970-01-01
    • 2013-09-13
    • 2017-05-14
    相关资源
    最近更新 更多