Placing two elements - charts - under each other on the page

EvilAngel

New Member
I have a piece of D3.js code that draws a chart, and it width,height,etc.. are set like this:\[code\]<script> var margin = {top: 20, right: 20, bottom: 30, left: 40}, width = 960 - margin.left - margin.right, height = 500 - margin.top - margin.bottom;\[/code\]And it draws fine on the page.To be exact: The script tag from this source: https://github.com/mhemesath/r2d3/blob/master/examples/scatterplot/scatterplot.htmlHow can I tell them not to overlap each other, I just simply want them for first one to show, then at the bottom of it the next one to show...
 
Back
Top