heatmap.js icon indicating copy to clipboard operation
heatmap.js copied to clipboard

setData bug

Open linghaozhang opened this issue 4 years ago • 1 comments

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?

linghaozhang avatar Aug 13 '21 07:08 linghaozhang

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

muyao1987 avatar Jan 30 '22 06:01 muyao1987