我使用 Amcharts 創建了一個交互式 2 系列 XY 面積圖用于吊具梁,將 amchart cdn 文件放入 Wordpress,但該圖表僅顯示在頁面構建器 Elementor 中,而不是在現場。有一個錯誤,未定義 am4core 函數,以及來自 amcharts 的交叉源錯誤,盡管所有源都顯示在 chrome 開發工具中。代碼在下面,顏色從原來的小提琴改變了https://stackoverflow.com/users/10419523/mohamed-ali-o-ameur網址位于https://applifting.ga/modular-spreader-beams/sectionlift-6/知道為什么這會在 Elementor 中顯示而不是在實時站點上顯示嗎?let chart = am4core.createFromConfig({ "data": [{ "category": 0.5, "value1": 8, "value2": 6.7 }, { "category": 1, "value1": 8, "value2": 6.7 }, { "category": 1.5, "value1": 8, "value2": 6.7 }, { "category": 2, "value1": 8, "value2": 6.7 }, { "category": 2.5, "value1": 8, "value2": 5 }, { "category": 3, "value1": 6.5, "value2": 3.7 }, { "category": 3.5, "value1": 5, "value2": 2.9 }, { "category": 4, "value1": 3.9, "value2": 2.3 }], "xAxes": [{ "type": "CategoryAxis", "id": "id-1", "title": { "type": "Label", "id": "span", "text": "Span in Metres" }, "dataFields": { "category": "category" }, "startLocation": 0.5, "endLocation": 0.5, "renderer": { "grid": { "template": { "type": "Grid", "location": 0.5 } }, "minGridDistance": 20 } }], "yAxes": [{ "type": "ValueAxis", "id": "id-2", "title": { "type": "Label", "id": "swl", "text": "S.W.L in Tonnes", "propertyFields": {} }, "min": "0", "max": "10", "renderer": { "maxLabelPosition": 0.98 } }]
Amcharts am4core 函數未定義
RISEBY
2023-01-06 10:40:00