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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crossfilter is not available from dc.js #28

Open
on-meetsys opened this issue Sep 15, 2016 · 3 comments
Open

crossfilter is not available from dc.js #28

on-meetsys opened this issue Sep 15, 2016 · 3 comments

Comments

@on-meetsys
Copy link

Hello,

I use ngCrossfilter with dc.js. It looks like dc can not render charts (called by a dc.renderall() ) because 'crossfilter' is not available :

angular.js:13920 TypeError: Cannot read property 'quicksort' of undefined
    at Object._chart._computeOrderedGroups (base-mixin.js:335)
    at Object.<anonymous> (cap-mixin.js:51)
    at Object._chart.data (base-mixin.js:261)
    at drawChart (row-chart.js:136)
    at Object._chart._doRender (row-chart.js:89)
    at Object._chart.render (base-mixin.js:645)
    at Object.dc.renderAll (core.js:230)
    at pages.controller.js:85
    at processQueue (angular.js:16383)
    at angular.js:16399

The base-mixin.js:335 is :
_orderSort = crossfilter.quicksort.by(_ordering);

And crossfilter is not available, because it is defined only into the new Crossfilter() object...

Is there a solution to have the crossfilter object available into dc.js ? Or did I misunderstood anything ?

Thanks.

@Wildhoney
Copy link
Owner

Wildhoney commented Sep 15, 2016

Do you need access to Service.prototype.crossfilter? It seems to me that it's simply after the crossfilter constructor which means you're not including it in the page?

I've never used Dimensional Charting, so I'm not sure how it functions.

@anmolkoul
Copy link

I am getting the same error when trying to use dc and crossfilter with requireJS.
@on-meetsys Did you happen to find a fix?

@Sinskar
Copy link

Sinskar commented Apr 25, 2017

same error here
with dc and angular 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants