ChartJS Line Chart

Multiple Line Chart

by cubicalmonkey

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.0.0-beta.10/chart.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<body>
<span> TEST
<svg onclick="copy_to_clipboard(this)" version="1.1" width="16" height="16" viewBox="0 0 16 16" class="EoIcon__StyledSVG-mk6m2r-0 jyFhtS eo-icon copy" xmlns="http://www.w3.org/2000/svg"><g stroke="none" fill="none"><g transform="translate(3.000000, 2.000000)" stroke="#5D617D"><rect x="0.5" y="2.5" width="7" height="9"></rect><path d="M2,0.5 L10,0.5"></path><path d="M9.5,0.662 L9.5,10"></path></g></g></svg>

</span>
</body>

CSS

canvas { background-color : #eee;
}

JavaScript

function copy_to_clipboard(e) {
console.log(e.parentElement)
  $(e).parent().fadeOut(300)
  $(e).parent().fadeIn(200)
navigator.clipboard.writeText(e.parentElement.outerText);

}