http://sigmajs.org/ les mis tutorial - why are my canvases 0 height?

165 Views Asked by At

I'm working through the http://sigmajs.org/ les miserable tutorial. I'm curious, when I run a local server and view my index.html page, why are the canvases generated by sigmas.js 0 height?

0 height canvases in chrome

https://github.com/micahstubbs/les-mis-tut/blob/master/02/index.html

1

There are 1 best solutions below

1
On BEST ANSWER

Because your CSS code is false. Replace it with this :

 #sigma-container {
  position :absolute;
  width :500px;
  height :500px;
  }