Publishing the Story on the Web

Learn how to insert an Altair chart into an HTML page and then publish it on the web.

When our data story is ready, we can export it as an HTML page and share it to build reports or web pages. Exporting an Altair chart as HTML is valid because of the following reasons:

  • Portability: We can easily share it with others who may not have Python or Altair installed on their systems. Instead, they can view the chart in any modern web browser.

  • Integration: We can easily integrate our Altair chart into a web application like a dashboard or report.

  • Collaboration: We can collaborate with our teammates or colleagues.

How to include an Altair chart on an HTML page

Let’s suppose we want to include the following chart on an HTML page:

Get hands-on with 1200+ tech skills courses.