title: Rendering mpld3 JSON chart in React
body: <p>Good day.</p>
  <p>I just recently came across <code>mpld3</code> and I am trying to see if it will be the solution to my issue.</p>
  <p>I want to create Matplotlib charts in Python, save them as JSON objects to a database, and then render them in my React webpage.</p>
  <p>So far I have created a plot in Python, using Matplotlib and converted it to a JSON object in a dictionary:</p>
  <pre><code>fig = plt.gcf()
  mpld3.display(fig)
  fig_to_dict = mpld3.fig_to_dict(fig)
  </code></pre>
  <p>Now I can save the dictionary to a file.</p>
  <p>My question is: Can I then render this JSON chart in my React project? And if so, how do I do that?</p>
  <p>Another thing is - I cannot use D3 in the front-end, I need to do all my &quot;chart making&quot; in the back-end.</p>
  <p>Thank you for any and all assistance!</p>