Skip to content

Instantly share code, notes, and snippets.

@winstondu
Created May 13, 2017 22:00
Show Gist options
  • Save winstondu/7f2cd328e6b980d62f8eb479ca26ce7a to your computer and use it in GitHub Desktop.
Save winstondu/7f2cd328e6b980d62f8eb479ca26ce7a to your computer and use it in GitHub Desktop.
sgsggs
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<script type="text/javascript" src="out/bundle.js"></script>
<div class="demo" style="text-align: center;">
<p>Chart Demo</p>
<div class="chartcontainer">
<script> window.display([
{ 'year': 2001, 'debt': 31.4 },
{ 'year': 2002, 'debt': 32.6 },
{ 'year': 2003, 'debt': 34.5 },
{ 'year': 2004, 'debt': 35.5 },
{ 'year': 2005, 'debt': 35.6 },
{ 'year': 2006, 'debt': 35.3 },
{ 'year': 2007, 'debt': 35.2 },
{ 'year': 2008, 'debt': 39.3 },
{ 'year': 2009, 'debt': 52.3 },
{ 'year': 2010, 'debt': 60.9 },
{ 'year': 2011, 'debt': 65.9 },
{ 'year': 2012, 'debt': 70.4 },
{ 'year': 2013, 'debt': 72.6 },
{ 'year': 2014, 'debt': 74.4 },
{ 'year': 2015, 'debt': 73.6 },
], 'year', 'debt',[2001, 2015], [0, 100],2008,8,5) </script>
</div>
<a href="javascript:void(0)" class="displayresults action-button">Add data</a>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment