我正在使用amcharts构建饼图。 馅饼通常在Firfox中显示,而在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(未找到)
虽然这些文件位于我本地存储库中的所需文件夹中。
知道为什么会这样吗?