Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/lib/arrow.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,20 @@ Visualized with [Plot’s difference mark](https://observablehq.com/plot/marks/d

```js echo
Plot.plot({
x: {type: "utc"},
marks: [
Plot.ruleY([0]),
Plot.differenceY(table, {x: "date", y: "value"})
]
})
```

<div class="note">

The chart above specifies _x_ as a UTC scale because Apache Arrow represents dates as numbers (milliseconds since [Unix epoch](<https://en.wikipedia.org/wiki/Epoch_(computing)>)) rather than Date objects; without this hint, Plot would assume that _date_ column is quantitative rather than temporal and produce a less legible axis.

</div>

## Apache Parquet

The [Apache Parquet](https://parquet.apache.org/) format is optimized for storage and transfer. To load a Parquet file — such as this sample of 250,000 stars from the [Gaia Star Catalog](https://observablehq.com/@cmudig/peeking-into-the-gaia-star-catalog) — use [`FileAttachment`](../files). This is implemented using Kyle Barron’s [parquet-wasm](https://kylebarron.dev/parquet-wasm/) library.
Expand Down