Is there a any way to make the dc.js
charts responsive?
I'm struggling a lot to make the charts fit the desktop size.
I'm using Twitter Bootstrap 3. I store the width of the div to a variable and pass it to the chart width. This will not make the chart responsive. But on first load the charts get to the width according to the size of the screen.
But now I face a challenge in it, that I have a different file for the dc.js
chart.
And I'm calling through a iframe
.
When I call it through iframe
the width is 0 for all the divs, and no charts appear in the webpage.
But when I reload the iframe
alone, the charts are appearing.
I even tried to load the frame when we click on that particular navigation item. But even that didn't work for me.
Someone help me to overcome this issue.