heavyai / heavyai-charting

Dimensional charting built to work natively with crossfilter rendered using d3.js

Home Page:https://heavyai.github.io/heavyai-charting/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception on resizing point map...

deathInTheAfternoon opened this issue · comments

🪲 Bug

  • Operating System and version: Win 10 64 bit
  • Browser and version: Chrome 62.0.3202.94
  • Steps to reproduce (including dashboard link): On resizing a point map (https://mapd.github.io/mapd-charting/example/example2.html) an exception is thrown.
  • 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)