Skip to content

D3: Updating Height Dynamically - Tests Not Passing #17976

Closed

Description

@Ozymandias9000

Describe your problem and - if possible - how to reproduce it

Tests are not passing with correct code. Curiously, the "The fifth div should have a height of 25 pixels" test is passing, but none of the others. DOM elements are rendering correctly with appropriate inline style.

Add a Link to the page with the problem

https://learn.freecodecamp.org/data-visualization/data-visualization-with-d3/update-the-height-of-an-element-dynamically/

Tell us about your browser and operating system

  • Browser Name: Chrome
  • Browser Version: 68
  • Operating System: Chrome OS

If possible, add a screenshot here

image

Activity

  1. moT01 commented on Aug 8, 2018

    @moT01
    Member

    @Ozymandias9000 it passed for me on firefox and chrome with the code in the picture - were you able to get it to pass?

  2. Ozymandias9000 commented on Aug 9, 2018

    @Ozymandias9000
    Author

    Oddly enough, no. I find it very strange that I can get the fifth test to pass, but none of the others, no matter what I do.

  3. moT01 commented on Aug 9, 2018

    @moT01
    Member

    yea, im not sure - did you try resetting the code and doing it again? is there any errors in the console? Try another browser maybe

  4. Ozymandias9000 commented on Aug 9, 2018

    @Ozymandias9000
    Author

    Yes to reset, no to errors. If it's a browser problem, that's an issue for people using Chromebooks like myself.

  5. clarkngo commented on Jan 25, 2019

    @clarkngo

    I got the same scenario as @Ozymandias9000 . Only the fifth test is passing.

    Browser Name: Chrome
    Browser Version: Version 71.0.3578.98 (Official Build) (64-bit)
    Operating System: MacOS Mojave Version 10.14.2

    I tried completing the challenge in Firefox and it passed.
    Similar users are having problems:
    https://www.freecodecamp.org/forum/t/update-the-height-of-an-element-dynamically-data-visualization-with-d3/199226

  6. added
    scope: curriculum
    on Feb 21, 2019
  7. MomchilKolev commented on Jun 19, 2019

    @MomchilKolev
    .style('height', d => `${d}px`) 
    

    does not work on Chromium - Version 75.0.3770.100 (Official Build) Arch Linux (64-bit)
    works on Firefox 67.0.3

  8. majestic-owl448 commented on Oct 15, 2019

    @majestic-owl448
    Contributor

    my browser: Versione 77.0.3865.120 (Build ufficiale) (a 32 bit) on Windows 10 Home v1803

    no test passes with callback d => d + "px"

  9. moT01 commented on Nov 13, 2019

    @moT01
    Member

    Pretty sure the problem is similiar to the problem on #18045

  10. lasjorg commented on Nov 14, 2019

    @lasjorg
    Contributor

    Yep looks like yet another zoom bug with Chrome. We can check the inline styles set instead for the test. I will make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: curriculum

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions