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

error in resetting colorScale #15

Closed
alexandersimoes opened this issue Dec 27, 2017 · 1 comment
Closed

error in resetting colorScale #15

alexandersimoes opened this issue Dec 27, 2017 · 1 comment
Assignees
Labels

Comments

@alexandersimoes
Copy link

Seems to be a bug in resetting the colorScale back to nothing, here's my config:

    shapeConfig: {
      Path: {
        fill: d => colorScale(d[val])
      }
    },
    colorScale: false
  };

And here's the console error:

ckmeans.js:149 Uncaught TypeError: Cannot read property 'length' of undefined
    at fillMatrices (ckmeans.js:149)
    at __webpack_exports__.a (ckmeans.js:225)
    at ColorScale.render (ColorScale.js:118)
    at Geomap.__webpack_exports__.a (_drawColorScale.js:50)
    at Geomap._draw (Viz.js:336)
    at Geomap._draw (Geomap.js:159)
    at Queue.eval [as _call] (Viz.js:486)
    at maybeNotify (queue.js:115)
    at eval (queue.js:86)
    at eval (load.js:50)
@alexandersimoes
Copy link
Author

Also tried using the new RESET constant which produced the same results.

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

No branches or pull requests

2 participants