Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minOpacity is actually minValue #31

Open
nhamer opened this issue Nov 4, 2017 · 3 comments · May be fixed by #32
Open

minOpacity is actually minValue #31

nhamer opened this issue Nov 4, 2017 · 3 comments · May be fixed by #32

Comments

@nhamer
Copy link

nhamer commented Nov 4, 2017

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

minopacity

@nhamer
Copy link
Author

nhamer commented Nov 4, 2017

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

@yannbriancon
Copy link

@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'
})

@MajorSquirrelTVS
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants