最新回答 / PZH
                                
                                                            在最开始添上这两句就可以了d3.csv = d3.dsv(",", "text/csv");  var csv = d3.dsv(",", "text/csv;charset=gb2312");  csv("data.csv",type,function(data){...
                            
                        
                        2016-01-10
                
            
                                最新回答 / 一知半解求学者
                                
                                                            已经解决了,.domain(data.map(function(d){return d.year;})),domain这应该是d.year,不是d.population
                            
                        
                        2016-01-08
                
            python服务器有跨域访问问题,下面的方法解决:
http://stackoverflow.com/questions/21956683/python-enable-access-control-on-simple-http-server
                http://stackoverflow.com/questions/21956683/python-enable-access-control-on-simple-http-server
                    
                    2015-11-22
                
            
                                已采纳回答 / 树数
                                
                                                            var width = 500,height = 250,margin={left:50, top:30, right:20, bottom:20},g_width = width - margin.left - margin.right,g_height = height - margin.top - margin.bottom;//svgvar svg = d3.select("#container").append("svg:svg")//width, height.attr("width", wi...
                            
                        
                        2015-10-22
                
            
                                最新回答 / 慕粉3343620
                                
                                                            .append("text").text("Time(s)").attr("dx",function(){return scale_x(data.length-2)})<...code...>
                            
                        
                        2015-09-25