Skip to content

Commit 67736b1

Browse files
authored
document arrow support (#2120)
1 parent 0f884a2 commit 67736b1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: docs/features/marks.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ linedata = [
219219
]
220220
```
221221

222+
:::tip
223+
For larger datasets, you can more efficiently pass data using an [Apache Arrow](https://arrow.apache.org/docs/js/) table as a columnar data representation. <VersionBadge pr="2115" />
224+
:::
225+
222226
Then you can pass the data to the line mark, and extract named columns from the data for the desired options:
223227

224228
:::plot https://observablehq.com/@observablehq/plot-accessors
@@ -239,7 +243,7 @@ Plot.lineY(linedata, {
239243
```
240244
:::
241245

242-
For greater efficiency, Plot also supports columnar data: you can pass parallel arrays of values to each channel.
246+
For greater efficiency, Plot also supports columnar data: you can use an [Apache Arrow](https://arrow.apache.org/docs/js/) table as data instead of an array of objects. <VersionBadge pr="2115" /> You can even pass parallel arrays of values, or Apache Arrow vectors, to each channel.
243247

244248
```js
245249
Plot.lineY({length: linedata.length}, {

0 commit comments

Comments
 (0)