Skip to content

Instantly share code, notes, and snippets.

@rmkane
Created February 23, 2016 14:43
Show Gist options
  • Save rmkane/03e006b27f6a23aea434 to your computer and use it in GitHub Desktop.
Save rmkane/03e006b27f6a23aea434 to your computer and use it in GitHub Desktop.
ZingChart - External Data Loading
Apple 25 34
Pear -16 10
Lemon 22 -5
Orange 41 21
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
<script>
zingchart.MODULESDIR = "zingchart/modules/";
</script>
<style></style>
</head>
<body>
<div id='myChart'></div>
<script>
var myConfig = {
"type": "line",
"csv": {
"url": "fruit.csv"
}
};
zingchart.render({
id: 'myChart',
data: myConfig,
height: 400,
width: "100%"
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment