Hi,
Is it possible to attach a chart, like a pie chart or a bar chart, to an HTML DIV element, such that no matter where the DIV shows up on the HTML page, its corresponding chart renders within the DIV at that location?
So, for example, if we have...
------------------------------------------------------------------------------
<body>
<div id="menu_area">
<!-- Insert menu code here -->
</div>
<div id="pie_chart"></div> <!-- Would render a pie chart within this DIV -->
<div id="bar_chart"></div> <!-- Would render a bar chart within this DIV -->
<div id="line_chart"></div> <!-- Would render a line chart within this DIV -->
<div id="footer">
<!-- Insert footer code here -->
</div>
</body>
------------------------------------------------------------------------------
Maybe I'm thinking of this the wrong way but it would seem that if we attach a chart to an element like a DIV, the DIV element would create a natural divider that would ensure that any canvas drawn within it will never interfere with whatever appears in any other HTML element. Is this the wrong way to be thinking about this? If so, what's the right way to be thinking of integrating D3 visualizations within common HTML page layouts?
Thanks,
Frank