Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3495008
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:04:28+00:00 2026-05-18T12:04:28+00:00

I have an HTML table of data and I want to mimic the Excel

  • 0

I have an HTML table of data and I want to mimic the Excel Color scales for conditional formatting so it highlights the relative value across this set of data.

The HTML table is simply drawing out a list of rows and for each row I have a value ( 0 – 300) and i want to have it color the background of the row of the table based on this algorithm so I assume it will need to generate an HTML color name or value for each number that is input

Any help where to start here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:04:29+00:00Added an answer on May 18, 2026 at 12:04 pm

    You could use this, and when deciding to generate the color, divide the row value/300 to use the exact function.

    Edit (Originally a comment)

    When specifying html colors, you can use the rgb(Rvalue, Gvalue, Bvalue) notation. Or you could convert the decimal values to their hex equivalent to to the #RRGGBB notation.

    In javascript, this would be achieved by following this method to convert to hex

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im trying to import html table data to an excel file and have succeeded
I have a HTML table (grid). I want to pass the html table data
I have an HTML table: <table id=HatedByCSSOnlyGoons> <tr><td>Header 1</td><td>Header 2</td></tr> <tr><td>Data</td><td>Data</td></tr> <tr><td>Data</td><td>Data</td></tr> </table> and
I have a table which show data from mysql database in HTML table like
I have an HTML table populated with data from a MySQL database using a
I have an html table which is populated with data through ajax/jquery and php.
I have html table that get data from mysql. Every 5 seconds I check
I have a huge html table that I am building dynamically, and I want
I have an html table of data with a drop down box in each
I have a data table and I want to write a loop where I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.