Responsive D3 pie chart.

431 views
Skip to first unread message

Bhavesh Bhatkar

unread,
Oct 31, 2013, 2:14:27 AM10/31/13
to d3...@googlegroups.com
I am trying to build responsive pie chart  with huge legend table on rt. hand side of pie chart inside an iframe.
The problem i am facing here is the pie chart is in iframe & once i recalculate the view box attribute etc..something like here
http://jsfiddle.net/BTfmH/12/
The pie chart flushes down so pie chart is at bottom & legend is at top.



Frank Guerino

unread,
Oct 31, 2013, 8:59:00 AM10/31/13
to d3...@googlegroups.com
Hi Bhavesh,

You may want to use offsets to place your objects on the canvas like with these Pie Charts, which also place interactive legends to the right of the pies.  Pre-calculate the width of your canvas to include all space you'll need for all objects and for any whitespace you'll need around borders and between objects.  Then use offsets to place the objects where you need them, on the canvas.

I hope this helps.

Frank



--
You received this message because you are subscribed to the Google Groups "d3-js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to d3-js+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages