Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

195
Views
How to create graphic from numerical argument JS (complete newbie)

(added specifics this time)

I am messing around with js at the moment and am now working on a project that takes an argument (4.5) and generates a graphic for a number of filled squares in a bar corresponding to the rating out of 5. Thus far, I have been stumped as to how to achieve this and would appreciate any help anyone is willing to offer This is the look of the rating system im trying to acheive

I am hoping to acheive this by filling these divs with a color corresponding to the number.

<div style="border-radius: 0px;"></div>
        <div style="
        border-radius: 0px;
    "></div>
        <div style="
        border-radius: 0px;
    "></div>
about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!