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

Color assigning issue #10

Open
MrAkmal08 opened this issue May 27, 2024 · 1 comment
Open

Color assigning issue #10

MrAkmal08 opened this issue May 27, 2024 · 1 comment

Comments

@MrAkmal08
Copy link

I am trying to assigning specific color on specific bin on the map. It work on other bin number except for bin 3 which is always have blue color. even I debug and assign all to white color, bin 3 still have blue color.
image

@gazer2kanlin
Copy link
Contributor

gazer2kanlin commented Aug 2, 2024

  1. var data = shotmap.data(maxX, maxY, minX, minY, "leftdown", "bincode")
  2. data.layer("1", resultProvidor, objProvidor);
    resultProvidor is a function and return the a code which 0 means good, others are bad.
  3. shotmap.diePalette( function(value) { // TODO } );
    value is the same as the code at step 2. You can return different color depending on the value.

I updated the README, and you can find some information on Layer and Color System section.

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

No branches or pull requests

2 participants