heavyai-charting icon indicating copy to clipboard operation
heavyai-charting copied to clipboard

Exception on resizing point map...

Open deathInTheAfternoon opened this issue 7 years ago • 0 comments

:beetle: Bug

  • [x] Operating System and version: Win 10 64 bit
  • [x] Browser and version: Chrome 62.0.3202.94
  • [x] Steps to reproduce (including dashboard link): On resizing a point map (https://mapd.github.io/mapd-charting/example/example2.html) an exception is thrown.
  • [x] Description of issue: There is an exception thrown during resizing of the browser Window. It looks like the guilty method is exiting prematurely, which I presume is unexpected behaviour. The exception is caused by an undefined 'group' when requesting 'lastFilteredSize' in raster-chart.js method: _chart.data(group => { if (_chart.dataCache !== null) { return _chart.dataCache } const bounds = _chart.getDataRenderBounds() _chart._updateXAndYScales(bounds) _chart._vegaSpec = genLayeredVega( _chart, group, lastFilteredSize(group.getCrossfilterId()) ) The browser console shows:
Uncaught TypeError: Cannot read property 'getCrossfilterId' of undefined
    at Object.<anonymous> (mapdc.js:32955)
    at Object._chart.data (mapdc.js:5183)
    at Object._chart._doRender (mapdc.js:33069)
    at Object._chart.render (mapdc.js:5660)
    at reSizeAll (example2.html:412)
    at complete (lodash.js:8619)
    at delayed (lodash.js:8629)

deathInTheAfternoon avatar Dec 18 '17 11:12 deathInTheAfternoon