Welcome to our Guide on Data-Rich Documents!

Welcome to our Guide on Data-Rich Documents!

Discover how to elevate your data storytelling and analysis with DataHub. This guide introduces the concept of data-rich documents, provides practical tutorials, and showcases examples to illustrate their potential.

Tutorials

Dive into our step-by-step tutorials designed to get you started with data-rich documents:

👨‍🎓 Publish data-rich stories with DataHub

👨‍🎓 Publishing datasets made simple with DataHub - just push a CSV + README to GitHub

Examples

Explore how data-rich documents can transform your data presentation:

👀 Data-rich story example: Discover the power of storytelling combined with data visualization.

👀 Dataset example: See how datasets can be presented in an accessible, visually engaging manner.

But wait, what is a data-rich document?

data-rich-document.png

A data-rich document is just a classic markdown document but with some superpowers to make data storytelling and analysis easy to do.

And so, in data-rich documents, the writer can easily mix formatted text content with data visualisations. This means that you don't have to code or embed your charts and tables; they can be added to the document with a very simple syntax, either by passing inline data or simply referencing your data files. What you end up with is a plain text, human-readable document enriched with data visualisations, that is simple to edit and looks awesome when published with DataHub.

What does the syntax look like?

The structure and text formatting of the documents are created with simple markdown. But it's not just markdown; it's markdown on steroids: writers are capable of easily adding tables of contents, mathematical formulas, data visualisations, and more!

And guess what? What you are reading right now is just this kind of data-rich document with rendering powered by DataHub. That's why we can do this:

Awesome, right? Even more awesome is that this chart is created by simply having the following snippet in this document:

<LineChart data={
    [
      ["1850",-0.41765878],
      ["1851",-0.2333498],
      ["1852",-0.22939907],
      ["1853",-0.27035445],
      ["1854",-0.29163003],
      ...
    ]
} />

Explore the Full Source: You can check out the full source of the data-rich document you are reading here.

Learn More

📚 Supported Markdown Features: For a full list of supported markdown features, visit our syntax guide.

📚 Data Visualization Components: Explore the full list and API of available data visualisation components here.

© 2024 All rights reserved

Built with DataHub LogoDataHub Cloud