Problem running a site/program

Hello, I want to run this:
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.

<link href="/dist/ChessDataViz.css" rel="stylesheet">
	body {
		background-color: lightgray;
		font-family: Roboto, sans-serif;

<script src=""></script>
<script src="/dist/ChessDataViz.js"></script>
<script src=""></script>
<script src=""></script>

d3.json('', function(err, data) {
  var heatmapExample1 = new ChessDataViz.HeatMap('#heatmap-example-1', null, data.heatmaps.squareUtilization);

<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>


But it doesn’t provide any visualization like it has in the site.
Why? What i’m doing wrong?

Thanks in advance.

What errors are you seeing in the browser console?

Except that visualization does not appear, i get the following errors too:
It’s like not recognizing <link href="/dist/ChessDataViz.css" rel="stylesheet"> code or something.


The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.  index2.html
ReferenceError: ChessDataViz is not defined[Learn More]

Can you show a screenshot of the root folder of your project, so we can see the folder/file structure? Also, try using <script src="dist/ChessDataViz.js"></script>

1 Like

I removed the / from there before, but nothing… :frowning:

Why are you referecing the ChessDataViz.js file in the dist folder, if it is in the root folder?

It’s in the dist folder also. :slight_smile:
But your previous comment(even though i think i applied that too(removing /) before) made it work.
Strange but thanks.