The βrightβ way to do this is to register your chart in the dc registry using dc.registerChart
https://github.com/dc-js/dc.js/blob/master/src/core.js#L91
Unfortunately, this material is not currently documented, but there is indeed a fairly easy connection. You just need to implement .redraw() and .render() on some object (diagram or wrapper) and pass it as the first argument.
Put it in the same group (second argument) as the diagrams to which it should answer.
render () creates dom elements from scratch, and redraw () updates them when data changes.
It looks like you might also need to implement the .filterAll() dummy, but this is an oversight.
I added a problem to document this stuff:
https://github.com/dc-js/dc.js/issues/676
Please comment here or here if you have any problems.
EDIT: This is now documented thanks to Jasmine Hegman. See diagram documentation for documentation .
source share