Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Recent content by lorelei

  1. L

    JavaScript D3 Freecodecamp Scatter Plot project problems

    Nobody is willing or able to help? :(
  2. L

    JavaScript D3 Freecodecamp Scatter Plot project problems

    Hi all :) Hope you are all enjoying the weekend. I'm having some trouble with this FCC project. I have already asked for help at the FCC site but have not received replies. This is the project: FCC scatter plot project This is how it's supposed to look like: Their scatter plot So, the dots...
  3. L

    JavaScript D3.js simple bar chart does not display the bars

    Sorry to post so often. I figured the part that had me stuck finally out ! Now for the tooltips. Will look at that tomorrow. Hopefully I'll be able to figure that out ,or I'll be back :)
  4. L

    JavaScript D3.js simple bar chart does not display the bars

    Still stuck. I'm about to throw in the towel. I'm beginning to despise programming. Not worth it anymore this amount of stress and grief.
  5. L

    JavaScript D3.js simple bar chart does not display the bars

    Hello again, I thought I had it solved but it seems not. I'm not sure at all what I'm doing I think. Some insight would be nice. Still the same link in top post. I hope someone will reply,, have mercy !! it's been 2 weeks this project alone!:thumbsdown: Thanks
  6. L

    JavaScript D3.js simple bar chart does not display the bars

    Okay, I solved it . Just posting somewhere(here) asking for help is enough sometimes, just to keep going at a problem . This stackoverlfow post gave me some insight at least: https://stackoverflow.com/questions/17841437/wrong-usage-of-d3-scale-with-same-values-in-data/17843472 I had multiple...
  7. L

    JavaScript D3.js simple bar chart does not display the bars

    Okay, now I managed to fix the direction of the bars, just that I still don't see 275 of them yet ?
  8. L

    JavaScript D3.js simple bar chart does not display the bars

    I'm still unable to get this right. It's supposed to show the GDP growth from 1947 to 2015. Instead it starts with the highest growth value in 1947 . Plus it should be 275 bars? Hope someone is willing to take a look :)
  9. L

    JavaScript D3.js simple bar chart does not display the bars

    Okay, so I figured out that line 43, was off course calculating for i (0 to 275) instead of the years. So if I use d instead that should work. But my problem still is that I need access to both arrYear and arrGDP ? .attr("height" , (d,i, arrGDP)=>yScale(arrGDP)) , does not work? Thanks !
  10. L

    JavaScript D3.js simple bar chart does not display the bars

    oke here's the code ,in case using a codepen link is a problem function displayData(json){ let dataset = []; const margin = 60; Object.keys(json).forEach(function(key){ dataset.push([key,json[key]]); }); //get the 'data' property const data =...
  11. L

    JavaScript D3.js simple bar chart does not display the bars

    Hi all. I'm thinking it's a problem with the xScale , because when I test console.log(xScale(20)) or such, it shows negative numbers. Hope someone is willing to help. Thanks:) I'll just post a link to my codepen codepen
  12. L

    JavaScript FCC 25 + 5 clock project

    Thanks Malcolm, never saw your reply sorry :) I managed to get it to work for 2 different versions, one is just plain JS, the other uses a react class. They work and pass the FCC test! But I have another version using React components and a class, that I can't get to work. Well , it seems to...
  13. L

    JavaScript FCC 25 + 5 clock project

    Never mind, I figured out the code snippet. Using nested components, honestly I feel i'm back at square one . Still stuck with the 25+5 code, but I'll see how this new code will work out.
  14. L

    JavaScript FCC 25 + 5 clock project

    could someone please give some insight with my direct above this post code snippit ? And, is it normal to be this stuck with react again. I feel like I'm getting nowhere, I keep having to redo beginner js/react tutorials. Maybe I'm not cut out for this.
  15. L

    JavaScript FCC 25 + 5 clock project

    Thanks for the reply and trying. If you run the code in the codepen , bottom left just press the three stripes , and search for the 25+5 clock test. I've been trying a different approach, but it doesn't seem easy right of the bat. with this code I separated the break from the app, can do the...
Back
Top Bottom