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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on resizing point map... #134

Open
deathInTheAfternoon opened this issue Dec 18, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@deathInTheAfternoon
Copy link

commented Dec 18, 2017

馃悶 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can鈥檛 perform that action at this time.