Giter VIP home page Giter VIP logo

Comments (5)

fzaninotto avatar fzaninotto commented on May 18, 2024

Do you have a fork I can test?

from codeflower.

YellowBlueFrog avatar YellowBlueFrog commented on May 18, 2024

I do, but I have not been testing off of my fork; so my fork will look like your original code.
I have noticed that the code flower appears when I go to your page, but is does not run from the downloaded zip. Feel free to use my fork if you wish.

from codeflower.

fzaninotto avatar fzaninotto commented on May 18, 2024

Did you look at the JS logs in your browser console?

I believe there might be one cause: d3.json() data loader (used in https://github.com/fzaninotto/CodeFlower/blob/master/index.html#L144) needs a server, it doesn't accept to serve files with relative path names. So my advice would be to start a server from the CodeFlower root (e.g. using jekyll) and try again

from codeflower.

YellowBlueFrog avatar YellowBlueFrog commented on May 18, 2024

You were right about that, and when I put the folder on a server that error went away. However, now the console is throwing two errors:
GET mysite.com/code_flower/code_flower/data.json 404 (Not Found) d3.js:421
Uncaught TypeError: Cannot read property 'children' of null

The second error is probably caused from the first error.

from codeflower.

YellowBlueFrog avatar YellowBlueFrog commented on May 18, 2024

Never mind, I found out what the problem was. The server we used did not have json imported onto it. Thank you for your help, it is working now. :)

from codeflower.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.