Redraw x & y axis' without calling dc.renderAll()?

477 views
Skip to first unread message

Cole Orton

unread,
Nov 12, 2013, 6:00:39 PM11/12/13
to dc-js-us...@googlegroups.com
Is there a way to redraw the x and y axis' without calling dc.renderAll()?

I'm trying to resize a chart on a window resize event and have that chart fill up it's parent container div, like so: 

$(window).resize(function() {
// super fast, but doesn't redraw the x & y axis'
dc.redrawAll();

// redraws everything associated with a chart, but at a performance cost
/* dc.renderAll(); */
});

Thanks in advance, Cole

Nick Zhu

unread,
Nov 12, 2013, 8:44:01 PM11/12/13
to Cole Orton, dc-js-us...@googlegroups.com
Currently resize require a renderAll to correctly re-render all element on a chart with new effective area size.


Nick
Reply all
Reply to author
Forward
0 new messages