JSFiddle - React, Tailwind, and code Playground

by svtux

JavaScript

var svg = '<svg width="700" height="420" style="overflow: hidden;"><defs id="defs"><clippath id="_ABSTRACT_RENDERER_ID_0"><rect x="131" y="80" width="438" height="260"></rect></clippath></defs><rect x="0" y="0" width="700" height="420" stroke="none" stroke-width="0" fill="#ffffff"></rect><g><rect x="131" y="80" width="438" height="260" stroke="none" stroke-width="0" fill-opacity="0" fill="#ffffff"></rect><g clip-path="url(#_ABSTRACT_RENDERER_ID_0)"><g><rect x="131" y="80" width="1" height="260" stroke="none" stroke-width="0" fill="#ffffff"></rect><rect x="346" y="80" width="1" height="260" stroke="none" stroke-width="0" fill="#ffffff"></rect><rect x="568" y="80" width="1" height="260" stroke="none" stroke-width="0" fill="#ffffff"></rect><rect x="131" y="287" width="438" height="1" stroke="none" stroke-width="0" fill="#f2f2f2"></rect><rect x="131" y="235" width="438" height="1" stroke="none" stroke-width="0" fill="#f2f2f2"></rect><rect x="131" y="184" width="438" height="1" stroke="none" stroke-width="0" fill="#f2f2f2"></rect><rect x="131" y="132" width="438" height="1" stroke="none" stroke-width="0" fill="#f2f2f2"></rect><rect x="131" y="80" width="438" height="1" stroke="none" stroke-width="0" fill="#f2f2f2"></rect></g><g><rect x="131" y="80" width="1" height="260" stroke="none" stroke-width="0" fill="#e8e8e8"></rect><rect x="131" y="339" width="438" height="1" stroke="none" stroke-width="0" fill="#e8e8e8"></rect></g><g><path d="M568.5,339.5L346.41803278688525,339.5L131.5,339.5" stroke="#e20074" stroke-width="2" fill-opacity="1" fill="none"></path></g></g><g><circle cx="568.5" cy="339.5" r="5" stroke="none" stroke-width="0" fill="#e20074"></circle><circle cx="346.41803278688525" cy="339.5" r="5" stroke="none" stroke-width="0" fill="#e20074"></circle><circle cx="131.5" cy="339.5" r="5" stroke="none" stroke-width="0" fill="#e20074"></circle></g><g><g><text text-anchor="middle" x="131.5" y="359.05" font-family="Arial" font-size="13" stroke="none" stroke-width="0"...