Open JakobStaudt opened 5 years ago
epoch chart is very old and it is not compatible with new version of d3.js. Try linking to older version of d3. I tried v3 and it worked.
hey bro, you can read this https://keithpblog.org/post/upgrading-d3-from-v3-to-v4/
epoch chart is very old and it is not compatible with new version of d3.js. Try linking to older version of d3. I tried v3 and it worked.
when I changed into d3.v3.min.js
, there is another error
Uncaught ReferenceError: d3 is not defined
at epoch.min.js:1
I currently want to write a chrome app that contains a epoch graph. Heres my index.html:
Heres my main.js:
When I run this, the chart area stays empty and the error "Uncaught TypeError: Cannot read property 'format' of undefined" appears. The line the error occurs at is 429 which contains this: d3Seconds = d3.time.format('%I:%M:%S %p'); My guess is that the error appears because d3 wasnt properly loaded but I dont know how to fix this as I think I followed the guide.