D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
marijer
Full window
Github gist
Module 2 - Stacked Area Chart
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Module 2 assignment</title> <!--<script type="text/javascript" src="../d3.js"></script>--> <script src="//d3js.org/d3.v3.min.js" charset="utf-8"></script> <link rel="stylesheet" type="text/css" href="main.css"> </head> <body> <div class="content-wrapper"> <div class="intro"> <h1>Refugee population by country of origin</h1> <div class="intro"></div> </div> <!-- SVG hook --> <div id="main-chart-hook"></div> <div id="small-multiples-hook"></div> <div class='meta source'>Source: <a href="https://data.worldbank.org/indicator/SM.POP.REFG.OR/" target="_blank">Worldbank, 2015</a> </div> </div> <div id="tooltip" class="none"></div> <script type="text/javascript" src="stacked_chart.js"></script> </body> </html>
https://d3js.org/d3.v3.min.js