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

setData bug #340

Open
linghaozhang opened this issue Aug 13, 2021 · 1 comment
Open

setData bug #340

linghaozhang opened this issue Aug 13, 2021 · 1 comment

Comments

@linghaozhang
Copy link

v 2.0.5 use in react
{"max":99,"data":[{"x":100,"y":200,"vaule":74},{"x":200,"y":200,"vaule":63},{"x":300,"y":200,"vaule":99},{"x":400,"y":200,"vaule":85}]}
if setData(data) cant render successfuly but if use random data,it can show {"max":99,"data":[{"x":288,"y":95,"value":85},{"x":638,"y":46,"value":37},{"x":440,"y":158,"value":17},{"x":765,"y":79,"value":50}]}`
why?

@muyao1987
Copy link

You can use this bug-fixed version:npm install @mars3d/heatmap.js

Corresponding source address: https://github.com/muyao1987/heatmap.js

mars3d update

  • fix: An error "Cannot assign to read only property 'data' of object '#'"
  • add: Added support for typescript in index.d.ts
  • The NPM package was released @mars3d/heatmap.js

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