performance issue using dc.js and ui-router with tabs

前端 未结 1 2010
梦如初夏
梦如初夏 2021-01-28 01:26

I\'m using dc.js with angular.js\'s ui-router. My goal is to have two routing states. Each should present multiple graphs.

Everything works fine, but everytime the routi

相关标签:
1条回答
  • 2021-01-28 01:47

    There is the undocumented dc.chartRegistry.deregister(chart,group):

    https://github.com/dc-js/dc.js/blob/master/src/core.js#L70

    But a bigger performance hit is if you are creating dimensions or groups and not disposing of them:

    https://github.com/square/crossfilter/wiki/API-Reference#dimension_dispose https://github.com/square/crossfilter/wiki/API-Reference#group_dispose

    This would cause more and more indices to be created, and all the data would have to get sorted and binned in more and more ways.

    0 讨论(0)
提交回复
热议问题