Uploading a dataset

How to get a .csv or .tsv file into a project, and what happens while it is checked.

Last updated · 4 min read · Docs / Datasets


Before you start

A dataset always lives inside a project, so you will need a project to upload into — create one first if you have not already. You will also need a dataset saved as a .csv (comma-separated) or .tsv (tab-separated) file whose first four rows declare the axis each column holds.

If you are preparing the file from scratch, read the dataset file format first. It explains the four reserved header rows, the units an axis may declare, and the rules each data value has to satisfy. This page assumes you already have a file in hand and focuses on getting it uploaded.


Uploading a file

Datasets are uploaded into a project. To add one:

  1. Open the project you want to add the dataset to.
  2. Click the + Upload Dataset button.
  3. Choose a .csv or .tsv file from your computer.
  4. Press Upload to start the upload.

The dialog closes as soon as you press Upload, and a short toast confirms that the server accepted the upload. From there the upload lives in the notification center. Its entry shows two bars:

Uploaded
How much of the file has reached the server.
Processed
How much of it the server has already read, and how many rows that was. The server starts reading as soon as the first bytes arrive, so this bar follows the first one rather than waiting for it.

Below the bars, the entry names the processing step the server is on; clicking it unfolds the full timestamped log, newest at the top. You are free to move around the toolkit in the meantime: the entry keeps updating wherever you are, and it stays in the center afterwards. Only a pause you did not ask for, or a failure, comes back as a toast.


Pausing, resuming and reloading

The file is sent in pieces, and the server keeps every piece it has received. That is what makes the upload interruptible:

  • Pause stops sending; Resume continues from the last piece the server holds.
  • Cancel stops the upload for good and the server discards what it received. It stays available while the server processes the file.
  • If the connection drops, the upload retries on its own. When it keeps failing it pauses itself, and resumes once your browser reports that it is back online.

Closing or reloading the page pauses the upload too. When you come back, press Resume on its notification. In Chrome and Edge the toolkit remembers which file it was, so it only asks for permission to read it again. Other browsers ask you to choose the file once more; pick the same, unchanged file, and the upload continues where it stopped.


File requirements

Before the contents are inspected, the file itself must:

  • use the .csv or .tsv format,
  • not be empty, and
  • be no larger than 10 GiB (100 GiB for administrators).

These are the cheapest checks to fail, so they run first. A file that is the wrong type, has no content, or is over the size limit is rejected before any of it is sent. The upload dialog states your own limit under the file picker.


What happens during validation

Once the basic requirements pass, the toolkit reads the four reserved header rows and then every data row beneath them, while the rest of the file is still arriving. Each column's header rows are checked as the declaration of an axis, and each value is checked against the type and unit of its axis. A problem in the header rows is found within the first seconds, and the upload stops right away instead of sending the rest of the file.

If anything is wrong, the notification reports the failure and offers a See details button. It opens a panel that describes each problem and points to the exact row and column so you can find it quickly. The original file on your computer is never changed; fix the issue there, then upload again.


After a successful upload

When validation passes, the dataset is added to the project and appears in its list of datasets. From there you can open it to filter, bookmark, and compare candidates in the parallel-coordinates view.

A dataset is a snapshot of the file you uploaded. To revise the data, edit your file and upload it again as a new dataset rather than editing values in place.

Ready to try it? Head to your projects and upload a dataset, or explore the tool with the sample data first.

Maintained by Aaron Clausen.
Questions or corrections: aclausen@dialogdesign.ca

© DIALOG · Green Toolkit documentation