<!DOCTYPE html>
<meta charset="utf-8">
<!-- Load d3.js -->
<script src="https://d3js.org/d3.v6.min.js"></script>
<!-- Create a div where the graph will take place -->
<div id="my_dataviz"></div>
<!DOCTYPE html>
<meta charset="utf-8">
<!-- Load d3.js -->
<body>
<!-- Create a div where the graph will take place -->
<div id="my_dataviz"></div>
<form method="get">
<input type="button" id="name1" value="chainsmokers" onClick="pr1()">
<input type="button" id="name2" value="david" onClick="pr2()">
<input type="button" id="name3" value="garrix" onClick="pr3()">
<input type="button" id="name4" value="omar" onClick="pr4()">
<input type="button" id="name5" value="queen" onClick="pr5()">
Line chart for: <span id="result"></span>
</form>
<div id = "body">
<script>