Amcharts.js禁用我的ammap的传奇

时间:2018-05-04 06:41:23

标签: javascript amcharts ammap

所以我在一个页面中同时使用ammap和amcharts。问题是,amcharts.js总是禁用我的ammap的图例并使其不可见。

我该如何解决这个问题?

amcharts图例设置:

        "legend": {
        "width" : "100%",
        "maxRows": 1,
        "position": "bottom",
        // "useGraphSettings": true,
        "markerSize": 10,
        "align" : "center",

    },

ammap图例设置:

        "legend" : {
        "width": "30%",
        "useGraphSettings": true,
        "marginRight": 27,
        "marginLeft": 27,
        "equalWidths": false,
        "backgroundAlpha": 0.2,
        "backgroundColor": "#000000",
        "borderColor": "#ffffff",
        "top": 450,
        "left": 0,
        "horizontalGap": 10,
        "data": [ {
            "title": "Negeri",
            "color": "#BF55EC",

            // "customMarker": "https://www.amcharts.com/lib/3/images/car.png"
        }, {
            "title": "Swasta",
            "color": "#32C5D2",
            "border" : "#000000"
        } ],
    }

但我不认为问题出在我的代码中。每当我评论amcharts.js它再次工作。

0 个答案:

没有答案