heatmap.js
heatmap.js copied to clipboard
setData bug
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?
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