simpleheat icon indicating copy to clipboard operation
simpleheat copied to clipboard

minOpacity is actually minValue

Open nhamer opened this issue 7 years ago • 3 comments

See attached screenshot, of simpleheat demo, with minOpacity set to 1

minopacity

nhamer avatar Nov 04 '17 02:11 nhamer

PR adds an opacity slider to the demo - it's more correct in some sense, but it's not actually prettier, so the right fix might be just to rename minOpacity

nhamer avatar Nov 04 '17 04:11 nhamer

@tristangbn deployed a npm package with a fix https://www.npmjs.com/package/simpleheat-gradient-opacity.

In his package, the opacity depends on the colors in the gradient option. To have transparent data up to 0.4, you can use a gradient like the one below:

heat.gradient({
    0.4: 'transparent',
    0.65: 'lime',
    1: 'red'
})

yannbriancon avatar May 22 '23 13:05 yannbriancon

Hi! Is it possible to take a look at @tristangbn work?

MajorSquirrelTVS avatar Sep 05 '24 08:09 MajorSquirrelTVS