Rendering Matplotlib on the Web

Overview

In order to render a matplotlib chart on the web, a HTML div must be specified as the location within the HTML page where to render the chart. The default way to do this is to create a div with the id, "matplotlib-container", as in the follwoing:

<div id="matplotlib-container"></div>