MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / setChartsType

Method setChartsType

src/mapboxgl/overlay/GraphThemeLayer.js:62–65  ·  view source on GitHub ↗

* @function GraphThemeLayer.prototype.setChartsType * @description 设置图表类型,此函数可动态改变图表类型。在调用此函数前请通过 chartsSetting 为新类型的图表做相关配置。 * @param {string} [chartsType] - 图表类型。目前可用:"Bar", "Line", "Pie"。

(chartsType)

Source from the content-addressed store, hash-verified

60 * @param {string} [chartsType] - 图表类型。目前可用:"Bar", "Line", "Pie"
61 */
62 setChartsType(chartsType) {
63 this.chartsType = chartsType;
64 this.redraw();
65 }
66
67 /**
68 * @function GraphThemeLayer.prototype.addFeatures

Callers

nothing calls this directly

Calls 1

redrawMethod · 0.95

Tested by

no test coverage detected