Trying to add multiple D3 graphs
问题 I'm trying to figure out how to include 2 or more graphs on my website. I am currently using the Area Graph and the Pie Graph. If I disable one of them, then the other works fine, but when I try to use both at the same time, it stops working. JS code for the Area Graph var margin = { top: 0, right: 0, bottom: 30, left: 50 }, width = 670 - margin.left - margin.right, height = 326 - margin.top - margin.bottom; var parseDate = d3.time.format("%d-%b-%y").parse; var x = d3.time.scale() .range([0,