Pie amChart未在Chrome

时间:2016-06-09 13:31:08

标签: javascript svg amcharts

我正在使用amcharts构建饼图。 馅饼通常在Firfox中显示,而在Chrome中则不是:  this is how the pie is displayed in Firefox:

And this in Chrome

HTML:

<div id="performancePieChartDiv" style="width: 295px; height: 83px"></div>

JS:

var performancePieConfig = {
            "type": "pie",
            "angle": 50,
            "depth3D": 15,
            "valueField": "value",
            "titleField": "label",
            "labelsEnabled": false,
            "balloonText" : "[[percents]]%",
            "colors": [
                "#00CC00",
                "#FFAB02",
                "#FF0000"
            ],
            "gradientType": "linear",
            "gradientRatio": [-.4, 0],
            "legend": {
                "position": "right",
                "markerBorderColor": "#000000",
                "markerSize": 8,
                "marginRight" : 0,
                "marginLeft" : 0,
                "verticalGap": 0,
                "valueWidth" : 0,
                "switchable": false
            },
            "outlineAlpha": 1,
            "outlineColor": "#cdcdcd"
        };

    createChart("performancePieChartDiv", performancePieConfig, true, performancePieData, function(retValue) {
    performancePieChart = retValue;
});

在Chrome控制台中,我遇到错误: https://localhost/report/amcharts/images/dragIconRoundBigH.svg 404(未找到) https://localhost/report/amcharts/images/dragIconRoundBig.svg 404(未找到)

虽然这些文件位于我本地存储库中的所需文件夹中。

知道为什么会这样吗?

0 个答案:

没有答案
相关问题