# replace

Swap the streamed set (`replace([])` clears it); the base `values` never leave. Without `chart.streaming` the dies upsert into the base like a batch (quietly: no `appended`, no `binChanged`, as a ring replace).

Canonical: https://chart.syidax.com/ko/docs/methods/replace/

<a id="definition"></a>

## 정의

```typescript
replace(values: ReadonlyArray<number> | Float32Array | ScatterChartValues | ReadonlyArray<PieChartDatum> | ReadonlyArray<RadarStreamFrame> | ReadonlyArray<FunnelSectionSpec | number> | ReadonlyArray<ChordLinkInput> | ReadonlyArray<NetworkGraphLinkInput> | ReadonlyArray<TreemapNodeInput> | ReadonlyArray<SunburstNodeInput> | ReadonlyArray<IcicleNodeInput> | ReadonlyArray<GanttTaskInput> | ReadonlyArray<ParallelCoordinatesRowInput> | ReadonlyArray<DendrogramNodeInput> | ReadonlyArray<GeoMapPointInput> | ReadonlyArray<Surface3DRowInput> | ReadonlyArray<Scatter3DDatum> | ReadonlyArray<FlowLinesRouteInput | ThemeRiverRow> | ReadonlyArray<Bar3DDatum>): Promise<void>
```

| 인수 | 타입 | 필수 여부 |
| --- | --- | --- |
| `values` | `ReadonlyArray<number> \| Float32Array \| ScatterChartValues \| ReadonlyArray<PieChartDatum> \| ReadonlyArray<RadarStreamFrame> \| ReadonlyArray<FunnelSectionSpec \| number> \| ReadonlyArray<ChordLinkInput> \| ReadonlyArray<NetworkGraphLinkInput> \| ReadonlyArray<TreemapNodeInput> \| ReadonlyArray<SunburstNodeInput> \| ReadonlyArray<IcicleNodeInput> \| ReadonlyArray<GanttTaskInput> \| ReadonlyArray<ParallelCoordinatesRowInput> \| ReadonlyArray<DendrogramNodeInput> \| ReadonlyArray<GeoMapPointInput> \| ReadonlyArray<Surface3DRowInput> \| ReadonlyArray<Scatter3DDatum> \| ReadonlyArray<FlowLinesRouteInput \| ThemeRiverRow> \| ReadonlyArray<Bar3DDatum>` | 필수 |

반환 타입: `Promise<void>`. 요소 등록이 끝난 뒤 메서드를 호출하고 Promise 결과를 await로 기다리세요.

- [ScatterChartValues](https://chart.syidax.com/ko/docs/types/ScatterChartValues.md) — 타입 정의
- [PieChartDatum](https://chart.syidax.com/ko/docs/types/PieChartDatum.md) — 타입 정의
- [RadarStreamFrame](https://chart.syidax.com/ko/docs/types/RadarStreamFrame.md) — 타입 정의
- [FunnelSectionSpec](https://chart.syidax.com/ko/docs/types/FunnelSectionSpec.md) — 타입 정의
- [ChordLinkInput](https://chart.syidax.com/ko/docs/types/ChordLinkInput.md) — 타입 정의
- [NetworkGraphLinkInput](https://chart.syidax.com/ko/docs/types/NetworkGraphLinkInput.md) — 타입 정의
- [TreemapNodeInput](https://chart.syidax.com/ko/docs/types/TreemapNodeInput.md) — 타입 정의
- [SunburstNodeInput](https://chart.syidax.com/ko/docs/types/SunburstNodeInput.md) — 타입 정의
- [IcicleNodeInput](https://chart.syidax.com/ko/docs/types/IcicleNodeInput.md) — 타입 정의
- [GanttTaskInput](https://chart.syidax.com/ko/docs/types/GanttTaskInput.md) — 타입 정의
- [ParallelCoordinatesRowInput](https://chart.syidax.com/ko/docs/types/ParallelCoordinatesRowInput.md) — 타입 정의
- [DendrogramNodeInput](https://chart.syidax.com/ko/docs/types/DendrogramNodeInput.md) — 타입 정의
- [GeoMapPointInput](https://chart.syidax.com/ko/docs/types/GeoMapPointInput.md) — 타입 정의
- [Surface3DRowInput](https://chart.syidax.com/ko/docs/types/Surface3DRowInput.md) — 타입 정의
- [Scatter3DDatum](https://chart.syidax.com/ko/docs/types/Scatter3DDatum.md) — 타입 정의
- [FlowLinesRouteInput](https://chart.syidax.com/ko/docs/types/FlowLinesRouteInput.md) — 타입 정의
- [ThemeRiverRow](https://chart.syidax.com/ko/docs/types/ThemeRiverRow.md) — 타입 정의
- [Bar3DDatum](https://chart.syidax.com/ko/docs/types/Bar3DDatum.md) — 타입 정의

<a id="related"></a>

## 관련 차트

- [sy-line-chart](https://chart.syidax.com/ko/docs/components/line.md#method-replace)
- [sy-area-chart](https://chart.syidax.com/ko/docs/components/area.md#method-replace)
- [sy-column-chart](https://chart.syidax.com/ko/docs/components/column.md#method-replace)
- [sy-bar-chart](https://chart.syidax.com/ko/docs/components/bar.md#method-replace)
- [sy-pie-chart](https://chart.syidax.com/ko/docs/components/pie.md#method-replace)
- [sy-scatter-chart](https://chart.syidax.com/ko/docs/components/scatter.md#method-replace)
- [sy-bubble-chart](https://chart.syidax.com/ko/docs/components/bubble.md#method-replace)
- [sy-polar-chart](https://chart.syidax.com/ko/docs/components/polar.md#method-replace)
- [sy-radar-chart](https://chart.syidax.com/ko/docs/components/radar.md#method-replace)
- [sy-lollipop-chart](https://chart.syidax.com/ko/docs/components/lollipop.md#method-replace)
- [sy-dumbbell-chart](https://chart.syidax.com/ko/docs/components/dumbbell.md#method-replace)
- [sy-tornado-chart](https://chart.syidax.com/ko/docs/components/tornado.md#method-replace)
- [sy-dot-plot-chart](https://chart.syidax.com/ko/docs/components/dot-plot.md#method-replace)
- [sy-variwide-chart](https://chart.syidax.com/ko/docs/components/variwide.md#method-replace)
- [sy-marimekko-chart](https://chart.syidax.com/ko/docs/components/marimekko.md#method-replace)
- [sy-waterfall-chart](https://chart.syidax.com/ko/docs/components/waterfall.md#method-replace)
- [sy-pareto-chart](https://chart.syidax.com/ko/docs/components/pareto.md#method-replace)
- [sy-histogram-chart](https://chart.syidax.com/ko/docs/components/histogram.md#method-replace)
- [sy-box-plot-chart](https://chart.syidax.com/ko/docs/components/box-plot.md#method-replace)
- [sy-error-bar-chart](https://chart.syidax.com/ko/docs/components/error-bar.md#method-replace)
- [sy-stem-leaf-chart](https://chart.syidax.com/ko/docs/components/stem-leaf.md#method-replace)
- [sy-heatmap](https://chart.syidax.com/ko/docs/components/heatmap.md#method-replace)
- [sy-calendar-heatmap](https://chart.syidax.com/ko/docs/components/calendar-heatmap.md#method-replace)
- [sy-density-map](https://chart.syidax.com/ko/docs/components/density-map.md#method-replace)
- [sy-spectrogram](https://chart.syidax.com/ko/docs/components/spectrogram.md#method-replace)
- [sy-gauge-chart](https://chart.syidax.com/ko/docs/components/gauge.md#method-replace)
- [sy-funnel-chart](https://chart.syidax.com/ko/docs/components/funnel.md#method-replace)
- [sy-funnel-chart](https://chart.syidax.com/ko/docs/components/pyramid.md#method-replace)
- [sy-pictorial-chart](https://chart.syidax.com/ko/docs/components/pictorial.md#method-replace)
- [sy-item-chart](https://chart.syidax.com/ko/docs/components/item.md#method-replace)
- [sy-word-cloud](https://chart.syidax.com/ko/docs/components/word-cloud.md#method-replace)
- [sy-tilemap](https://chart.syidax.com/ko/docs/components/tilemap.md#method-replace)
- [sy-treemap](https://chart.syidax.com/ko/docs/components/treemap.md#method-replace)
- [sy-sunburst](https://chart.syidax.com/ko/docs/components/sunburst.md#method-replace)
- [sy-icicle](https://chart.syidax.com/ko/docs/components/icicle.md#method-replace)
- [sy-dendrogram](https://chart.syidax.com/ko/docs/components/dendrogram.md#method-replace)
- [sy-sankey](https://chart.syidax.com/ko/docs/components/sankey.md#method-replace)
- [sy-chord](https://chart.syidax.com/ko/docs/components/chord.md#method-replace)
- [sy-network-graph](https://chart.syidax.com/ko/docs/components/network-graph.md#method-replace)
- [sy-theme-river](https://chart.syidax.com/ko/docs/components/theme-river.md#method-replace)
- [sy-parallel-coordinates](https://chart.syidax.com/ko/docs/components/parallel-coordinates.md#method-replace)
- [sy-geo-map](https://chart.syidax.com/ko/docs/components/geo-map.md#method-replace)
- [sy-flow-lines](https://chart.syidax.com/ko/docs/components/flow-lines.md#method-replace)
- [sy-candlestick-chart](https://chart.syidax.com/ko/docs/components/candlestick.md#method-replace)
- [sy-ohlc-chart](https://chart.syidax.com/ko/docs/components/ohlc.md#method-replace)
- [sy-surface-3d](https://chart.syidax.com/ko/docs/components/surface-3d.md#method-replace)
- [sy-bar-3d](https://chart.syidax.com/ko/docs/components/bar-3d.md#method-replace)
- [sy-scatter-3d](https://chart.syidax.com/ko/docs/components/scatter-3d.md#method-replace)
- [sy-gantt-chart](https://chart.syidax.com/ko/docs/components/gantt.md#method-replace)
- [sy-wafer-map](https://chart.syidax.com/ko/docs/components/wafer-map.md#method-replace)
