I am designing a website using wix but also some embedded JavaScript and HTML to learn those languages. I am using this tutorial https://www.zingchart.com/docs/tutorials/loading-data/using-json-data but when I change the data url to my data I get the error:
Network error: Resource not found
Section: URL Data Loader
JSON Data:
undefined
Their data: https://storage.googleapis.com/studio-assets/resources/chart.json
My data: https://raw.githubusercontent.com/IsaacOldwood/shopTitansData/master/chart.json
I have read through the documentation and changed my data format to match theirs exactly. I have tried using the github api and the raw data.
Their Code:
<head>
<meta charset="utf-8">
<title>ZingSoft Demo</title>
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
<style>
html,
body,
#myChart {
height: 100%;
width: 100%;
}
zing-grid[loading] {
height: 800px;
}
</style>
</head>
<body>
<div id='myChart'></div>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
zingchart.render({
id: 'myChart',
output: "svg",
"dataurl": "https://storage.googleapis.com/studio-assets/resources/chart.json",
height: "100%",
width: "100%"
});
</script>
</body>
</html>
The code on my website embedded:
<html>
<head>
<meta charset="utf-8">
<title>ZingSoft Demo</title>
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
<style>
html,
body,
#myChart {
height: 98%;
width: 99%;
}
zing-grid[loading] {
height: 800px;
}
</style>
</head>
<body>
<div id='myChart'></div>
<script>
ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "b55b025e438fa8a98e32482b5f768ff5"];
zingchart.render({
id: 'myChart',
output: "svg",
"dataurl": "https://raw.githubusercontent.com/IsaacOldwood/shopTitansData/master/chart.json",
height: "100%",
width: "100%"
});
</script>
</body>
</html>
The expected output is the graph from the tutorial with my data. But the actual output is the error.
Network error: Resource not found (https://raw.githubusercontent.com/IsaacOldwood/shopTitansData/master/chart.json)
Section: URL Data Loader
JSON Data:
undefined