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

202
Views
D3.js color with domain a set of colors and range a subset of colors

i'm trying to create a color scale with domain a list of colors and range a "sublist" of colors. Maybe is better to explain with an example. I would like a function such that color("#00FF00"), returns a different kind of green like for example dark green. This is because i need to catalogue a list of items with some standard colors and a sublist with "subcolors"

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

There are around 140 named colous you can use in css. See for example https://www.w3schools.com/colors/colors_hex.asp. It includes things like "red", "yellow", "teal", "deepskyblue" and so on. To select you could use a select tag and have option tags with text equal to the name and with backgroundColor also equal to the name.

about 4 years ago · Juan Pablo Isaza Report
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!