API REFERENCE

setData

Replace the bar set.

Definition

typescript
setData(data: RadarChartData | FunnelChartData | ReadonlyArray<VariwideDatum> | HeatmapData | DensityMapInput | SpectrogramInput | CalendarHeatmapData | CandlestickData | BoxPlotData | BubbleData | WaterfallData | ErrorBarData | SankeyData | ChordData | NetworkGraphData | TreemapData | SunburstData | IcicleData | GanttData | ParallelCoordinatesData | DendrogramData | GeoMapData | Surface3DData | Scatter3DData | FlowLinesData | ThemeRiverData | Bar3DData): Promise<void>

Return type: Promise<void>. Call the method after element registration and await its Promise result.