anchor.diff:  <script type="text/javascript" src="js/d3.js"></script>
   <script type="text/javascript">
   <!--以下为生成散点图的代码-->
  +//初始化数据
   var dataXY={
   	x:[45,59,33,81,77,26,19,55,50,34,99,61,38,72,59,25],
   	y:[25,36,19,45,42,23,16,38,32,22,48,42,29,36,29,17],
   	xName:"测试1X轴（单位）",
  -	yName:"测试1y轴（单位）" };
  +	yName:"测试1y轴（单位）",
  +	p:0,
  +	r:0,
  +	alpha:0.05};
   var dataXY1={
   	x:[10,20,30,40,50,60,70,80],
   	y:[10,20,30,40,50,60,70,80],
   	xName:"测试2X轴（单位）",
  -	yName:"测试2y轴（单位）" };
  +	yName:"测试2y轴（单位）",
  +	p:0,
  +	r:0,
  +	alpha:0.05};
   var dataXY2={
   	x:[10,20,30],
   	y:[30,20,10],
   	xName:"测试3X轴（单位）",
  -	yName:"测试3y轴（单位）" };
  +	yName:"测试3y轴（单位）" ,
  +	p:0,
  +	r:0,
  +	alpha:0.05};
  +	
   var dataXYArray=[dataXY,dataXY1,dataXY2];
   var arrayNumber=0;
   var xmin=0;
  
positive.code: 		rescale();
  	}
             
  }       
  <!--建立X坐标轴-->
  function renderXGridlines(){
      var lines = d3.selectAll("g.x-axis g.tick")
  
negative.code: 				},
              success: function(json){
  				
  				json.forEach(function(d,i)
  				{
  					dataXYArray[i].p=d.p;
  					dataXYArray[i].r=d.r;
  					});
  				
  				//画图
  				$("svg").empty();
  			    scatterplot();
  					     	
              },
           
  		 });
     
  	
  	};
  
  