JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html><html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Area</title>
<style>
html {
	margin: 0px;
}
body {
	margin: 20px 30px;
}
#realchart {
	width: 850px;
	height: 550px;
    border: 1px solid lightgray;
    margin-bottom: 20px;
}
</style>
<link href="https://unpkg.com/realchart/realchart-style.css" rel="stylesheet" crossorigin="anonymous">
<script type="text/javascript" src="https://unpkg.com/realchart/index"></script>
<script type="text/javascript">
	window.addEventListener('DOMContentLoaded', function () {
		try {
			init();
		} catch (err) {
			alert(err);
			console.error(err);
		}
	});	
	
</script>

  <script>
    var realChartLic = 'upVcPE+wPOkOR/egW8JuxkM/nBOseBrflwxYpzGZyYkhw7qfHRQ+GiF0lY62mJi5KBwoSJHOA48O5+/xJSE3LhLB4LkQ8rWX0QeIbtyyIEGTFVqWmNPdyQ==';
  </script>
</head>
<body>
	<div id="realchart"></div>
	

		 </body></html>

JavaScript

const data = [{
  year: 1994,
  total: 742668,
  students: 521806,
  graduate: 213459,
  GED: 7403,
  male: 437465,
  female: 305203
}, {
  year: 1994,
  total: 750181,
  students: 496617,
  graduate: 243826,
  GED: 9738,
  male: 444612,
  female: 305569
}, {
  year: 1995,
  total: 781749,
  students: 477960,
  graduate: 261492,
  GED: 42297,
  male: 452360,
  female: 329389
}, {
  year: 1996,
  total: 840661,
  students: 526833,
  graduate: 300482,
  GED: 13346,
  male: 478707,
  female: 361954
}, {
  year: 1997,
  total: 824374,
  students: 545023,
  graduate: 268044,
  GED: 11307,
  male: 472527,
  female: 351847
}, {
  year: 1998,
  total: 885321,
  students: 613376,
  graduate: 261424,
  GED: 10521,
  male: 495179,
  female: 390142
}, {
  year: 1999,
  total: 868643,
  students: 623130,
  graduate: 233893,
  GED: 11620,
  male: 475625,
  female: 393018
}, {
  year: 2000,
  total: 896122,
  students: 631745,
  graduate: 250064,
  GED: 14313,
  male: 483602,
  female: 412520
}, {
  year: 2001,
  total: 872297,
  students: 603238,
  graduate: 254538,
  GED: 14521,
  male: 465546,
  female: 406751
}, {
  year: 2002,
  total: 739129,
  students: 541662,
  graduate: 185946,
  GED: 11521,
  male: 390473,
  female: 348656
}, {
  year: 2003,
  total: 675922,
  students: 482089,
  graduate: 179880,
  GED: 13953,
  male: 356418,
  female: 319504
}, {
  year: 2004,
  total: 674154,
  students: 476129,
  graduate: 184317,
  GED: 13708,
  male: 357421,
  female: 316733
}, {
  year: 2005,
  total: 610257,
  students: 435538,
  graduate: 161524,
  GED: 13195,
  male: 324700,
  female: 285557
}, {
  year: 2006,
  total: 593806,
  students: 422310,
  graduate: 159190,
  GED: 12306,
  male: 314323,
  female: 279483
}, {
  year: 2007,
  total: 588899,
  students: 425396,
  graduate: 151697,
  GED: 11806,
  male: 313715,
  female: 275184
}, {
  year: 2008,
  total: 584934,
  students: 446597,
  graduate: 126729,
  GED: 11608,
  male: 312064,
  female: 272870
}, {
  year: 2009,
 ...