JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://unpkg.com/d3@3/d3.min.js"></script>
<script src="https://unpkg.com/function-plot@1/dist/function-plot.js"></script>
<div id="grid">

</div>

JavaScript

functionPlot({
  target: '#grid',
  xAxis: {
    label: 'real'
  }, 
  yAxis: {
    label: 'imaginary' 
  },
  grid: true,
  data: [
    { fn: 'sqrt(1 - x * x)' },
    { fn: '-sqrt(1 - x * x)' }
  ]
})