我在下面有這個高圖代碼,我正在尋找一種動態傳遞給它一些值的方法:let rendermap = Highcharts.mapChart("map-container", { chart: { map: "custom/world", }, borderColor: "#EEF0EF", colors: ["#CBCDCC", "#6b6b6b"], mapNavigation: { enabled: true, enableDoubleClickZoomTo: true, }, mapNavigation: { enabled: true, buttonOptions: { theme: { fill: "rgba(255, 255, 255, 0)", "stroke-width": 1, stroke: "#fb9718", r: 13, states: { hover: { fill: "#fb9718", }, select: { stroke: "#039", fill: "#fb9718", }, }, }, verticalAlign: "top", alignValue: "center", }, }, colorAxis: { min: 1, max: 1000, type: "logarithmic", }, series: [{ data: mapdata, borderColor: "#EEF0EF", joinBy: ["iso-a3", "code3"], name: "Population density", states: { hover: { color: "#07AABB", }, }, }, ],});colorAxis例如,我想動態更改顏色選項。我可以這樣做嗎rendermap.colorAxis.amxColor ="#EEF0EF":它似乎不是那樣工作的。
動態更改高圖值
浮云間
2023-05-11 15:56:16