Drop a Zip, Get a Chart: Archive and Compressed Data Loading in CanvasXpress
If you work with real-world datasets, you know the drill. The expression matrix lives in a .csv, the sample metadata lives in another file, the chart configuration is a separate .json, and by the time you're ready to visualize anything, you've unzipped a folder, renamed a few files, and dragged them in one at a time. It works, but it's friction — and friction is exactly what a good visualization tool should remove.
CanvasXpress now lets you skip that step entirely. You can hand it a compressed or archived bundle — a .zip, a .tar, a .tar.gz/.tgz, or a plain .gz — and it will unpack it, figure out which file is data and which is configuration, and render the chart, all from a single drag-and-drop or a single URL.
Why this matters
Datasets rarely travel alone. A typical shareable package looks like a data file plus a config file plus maybe a title or some display options, bundled together so a collaborator (or a future version of you) can reproduce the exact same chart without reverse-engineering what went where. Until now, getting that package into CanvasXpress meant decompressing it yourself and loading the pieces separately.
With archive loading, that packaging step becomes the delivery step. Zip up your data and config, send the archive, and the recipient drops the whole thing onto a CanvasXpress chart. No unzip utility, no manual pairing of files, no instructions required.
How CanvasXpress figures out what's inside
Archives are rarely self-describing, so CanvasXpress applies a simple, predictable convention when it opens one:
1. A manifest, if there is one. If the archive contains a JSON file with a top-level data field pointing to another file by name, that JSON is treated as the manifest. Everything else in it — config, title, events, and so on — is applied as chart options, while the named file supplies the actual data. A manifest looks like this:
{
"data": "expression.csv",
"config": {
"graphType": "Heatmap",
"title": "Cohort Expression"
}
}
Drop an archive containing manifest.json and expression.csv, and CanvasXpress resolves the reference and builds the chart from both files automatically.
2. A config + data pair, with no manifest. If the archive has exactly two files — one that's clearly a data format and one that's clearly a config-shaped JSON (it has a graphType or a config block) — CanvasXpress pairs them up without requiring an explicit manifest at all. This is the fastest path when you just want to bundle "my data" and "my settings" together without writing extra wiring.
3. A single supported file. If the archive contains just one recognizable data file, it loads exactly as though you'd dropped that file directly — the archive is just transport.
4. Anything ambiguous — multiple data files with no manifest to disambiguate them — produces a clear error naming the entries it found, rather than CanvasXpress guessing on your behalf. Explicit is better than clever here, especially when the result ends up in a report.
What formats are supported inside an archive
Once CanvasXpress has located the data file, it hands it to the same parsing logic it already uses for direct uploads — so everything that works today as a standalone drop or URL load works the same way inside an archive. Delimited text and JSON data convert directly, config and all. Other visualization formats — SVG, PNG, GeoJSON, GML, GEXF, and ESV — are routed to their existing handlers, so nothing about how those formats render changes just because they arrived zipped up.
In short: if CanvasXpress can load it today by itself, it can load it today from inside an archive.
Both drag-and-drop and URLs
This isn't limited to local files. If you're pointing CanvasXpress at a remote URL for your data — a common pattern when embedding charts in documentation, dashboards, or shared reports — that URL can now point straight at a .zip, .tar, .tar.gz, .tgz, or .gz file. CanvasXpress fetches it, recognizes the archive or compression format from its contents, unpacks it, and builds the chart exactly as it would from a local drop. You can host one packaged file instead of juggling separate data and config endpoints.
Using it
There's no new API to learn for the common case — this is a loading-path enhancement, not a new method. Drag an archive file onto a chart container the way you'd drag a CSV, or reference an archive URL the way you'd reference any remote data source, and CanvasXpress takes care of the rest.
Once the chart is up, everything you already know still applies. You can inspect or adjust the resolved configuration programmatically:
var config = cx.getConfig();
push new data or settings in:
cx.updateData(newData, true);
cx.updateConfig(newConfig, true);
or resize it:
cx.setDimensions(800, 500);
And because the chart that comes out of an archive is a completely normal CanvasXpress chart, it works with the toolbar's Save Current as JSON action to snapshot the result, and with Reproduce to step back through how it was built — just like any chart loaded the traditional way.
The takeaway
Packaging data and configuration together has always made sense conceptually; now it makes sense operationally too. Whether you're distributing a dataset to a collaborator, serving a packaged chart from a static URL, or just tired of keeping a CSV and a JSON config in sync across two separate uploads, archive loading collapses that into a single file and a single drop. Zip it, share it, drop it — and let CanvasXpress sort out the rest.