Code Monkey home page Code Monkey logo

Comments (3)

Drewpeifer avatar Drewpeifer commented on August 15, 2024

I'm glad you're enjoying it! Sorry for the trouble though, it is strange that you are seeing the genre chart but not the other charts. I'm not sure what the issue is off the top of my head, but you might get some useful info from the JS console (right-click and then select "inspect" or "developer tools" depending on your browser, then access the "console" tab). You might need to refresh with the console open to trigger the error, if there is one.

If the error displayed isn't helpful, or if there aren't any errors, the next step would be to go into scripts.js on line 219 where it says // movies by decade chart and add 2 new lines right before the $.each() statement:

console.dir(jsonData);
console.dir(releaseDateList);

Then refresh the page (with the console open) and the first line should print your entire movies payload, and the second should print the list of release dates for the first chart you're missing (Movies by Decade). I would debug each chart that is missing that way, comparing the payload from jsonData to the actual object being passed to the C3 chart.

My guess would be that either there is a difference between the XML/JSON structure of our libraries (and you'll have to edit the code to match your XML structure), or you've run into an edge case I haven't found yet (like a movie that's has two release years or something weird, etc.).

Sorry again for the trouble, and let me know if I can be of any more help. Good luck!

from medialytics.

Drewpeifer avatar Drewpeifer commented on August 15, 2024

@Mascha11 Just FYI, I've made some recent changes that deal with some NaN cases as well as fixing a scenario where the server payload would contain a node that was just line breaks(?). The API is not perfect, so there may be more edge cases to find, but maybe one of these will solve (or help diagnose) your issue.

from medialytics.

Drewpeifer avatar Drewpeifer commented on August 15, 2024

Closing this due to the age of the post, recent updates may have solved the problem but please open a new issue if the problem persists.

from medialytics.

Related Issues (6)

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.