Created
December 30, 2016 00:54
-
-
Save tanyagupta/bfb2e1da7186164b75cd66ef5d86c2c3 to your computer and use it in GitHub Desktop.
Using D3 in GAS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<div class="chart"></div> | |
</body> | |
<style> | |
.chart div { | |
font: 12px arial-serif; | |
background-color: black; | |
text-align: right; | |
padding: 5px; | |
margin: 3px; | |
color: red; | |
} | |
</style> | |
<h1>Sample D3 chart in GAS</h1> | |
<div class="chart"> | |
<div style="width: 50px;">5</div> | |
<div style="width: 75px;">7</div> | |
<div style="width: 152px;">15</div> | |
<div style="width: 112px;">11</div> | |
<div style="width: 234px;">23</div> | |
<div style="width: 567px;">56</div> | |
</div> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doGet() { | |
return HtmlService.createTemplateFromFile('UI').evaluate().setTitle("Test").setSandboxMode(HtmlService.SandboxMode.IFRAME) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment