Created
November 24, 2017 22:56
-
-
Save carlvlewis/6a9251fe8e03179fa7ba811539d3536b to your computer and use it in GitHub Desktop.
dVpJmr
This file contains 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
<head> | |
<script src="https://code.highcharts.com/highcharts.js"></script> | |
<script src="https://code.highcharts.com/modules/data.js"></script> | |
<script src="https://code.highcharts.com/modules/drilldown.js"></script> | |
<script src="//script.sheetsu.com/"></script> | |
</head> | |
<body> | |
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div> | |
<script> | |
Sheetsu.read("https://sheetsu.com/apis/v1.0/020b2c0f/", {}).then(successFunc); | |
function successFunc(data) { | |
Highcharts.chart("container", { | |
chart: { type: "column" }, | |
title: { text: "Family Guy Score" }, | |
series: [ | |
{ | |
colorByPoint: true, | |
data: data.map(function(item) { | |
return { name: item.name, y: parseInt(item.score, 10) }; | |
}) | |
} | |
] | |
}); | |
} | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment