The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
And I'd also add that 65% of us don't read instructions.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
Just a thought about a layout using standard HTML controls.
A div that contains the gradient - your algorithm to create the shading based upon input pars for the "break points" in color.
A slider control immediately under it with the numeric range so you can do your slide thing.
Nice part is that the controls already exist and the more complex one, the slider, is ready made and standard. CSS can have dynamic values, the --prefixed ones, which you can modify via your algorithm or just generate the gradient values directly for the a bars.
I'm looking for a way to graphically represent an optimum range of values, along with the actual value of a variable. One idea I've seen is a simple bar with a gradient from red to orange, green, back to orange and then to red, with the optimal range being the green zone, and a simple triangle marker pointing to the value of the variable along the range.
Is that for life, or mana?
Bastard Programmer from Hell
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
The British 10^9 billion is used for financial values (esp. by the Government); the British 10^12 billion is still more common outside of finance. The advice is never use the word Billion, use 10^9 / 10^12; or, when talking to 'ordinary' people use thousand million / million million. Same for Trillions etc. The generic 'gazillion' can be used without clarification as it just means an extraordinarily large amount.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!