An simple multi-line chart that pivots from raw values to percent change using separate CSVs.
xxxxxxxxxx
<html>
<head>
<meta charset="utf-8">
<title>Scatterplot Pivot</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.2/css/bootstrap.css">
</head>
<body>
<div id="chart">
<h1>Stock History</h1>
<h4>News Corp. (NWS) & A. H. Belo Corp. (AHC)</h4>
<div class="btn-group" data-toggle="buttons">
<label id="priceBtn" class="btn btn-primary active">
<input type="radio" name="options" autocomplete="off" checked>Weekly Price
</label>
<label id="changeBtn" class="btn btn-primary">
<input type="radio" name="options" autocomplete="off">Weekly Change
</label>
</div>
</div>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="script.js"></script>
</body>
</html>
https://code.jquery.com/jquery-1.9.1.min.js
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js
https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.2/js/bootstrap.min.js