Skip to content

Instantly share code, notes, and snippets.

@carlvlewis
Created November 24, 2017 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlvlewis/6a9251fe8e03179fa7ba811539d3536b to your computer and use it in GitHub Desktop.
Save carlvlewis/6a9251fe8e03179fa7ba811539d3536b to your computer and use it in GitHub Desktop.
dVpJmr
<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