Observable Framework Data Loader with local csv file

JavaScript data loaders are standard Node.js programs, so you should use Node’s readFile from node:fs/promises to read a file. The FileAttachment class is only needed for client-side JavaScript (not data loaders).

1 Like