Hello, I want to run this: https://ebemunk.com/chess-dataviz/
It is supposed to be super easy.
I wanted to test on my computer offline first.
So i downloaded the zip file and extracted all the contents to a folder.
I also copied the dist folder contents to root folder.
And then i’m using the following(with the help of index.html on test folder and the Javascript code on the first example on the site) to run it.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
<html>
<head>
<link href="/dist/ChessDataViz.css" rel="stylesheet">
<style>
body {
background-color: lightgray;
font-family: Roboto, sans-serif;
}
</style>
</head>
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="/dist/ChessDataViz.js"></script>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-tip/0.6.7/d3-tip.min.js"></script>
<script>
d3.json('https://ebemunk.com/chess-dataviz/data/wrc.json', function(err, data) {
var heatmapExample1 = new ChessDataViz.HeatMap('#heatmap-example-1', null, data.heatmaps.squareUtilization);
});
</script>
<div id="heatmap-example-1" class="cdv-heatmap"></div>
<div class="caption">World Rapid Chess Championship 2015, square utilization by white (how many times a piece landed on a square)</div>
</body>
</html>
▄▄▄▄▄▄▄▄▄▄▄▄
But it doesn’t provide any visualization like it has in the site.
Why? What i’m doing wrong?
Thanks in advance.