2.4毕设
2020-02-04 17:08 Robortxin 阅读(110) 评论(0) 编辑 收藏 举报echart图分成好几个for循环赋值页面加载出来:
代码如下:
<%
double d,x0,y0;
Random random = new Random();
for(int i=0;i<100;i++)
{
d = random.nextDouble() * 105 * 100;
x0 = ((int) d) / 100f+230;
d = random.nextDouble() 200 100;
y0 = ((int) d) / 100f+100;
%>
{
name: '<%=oraRes[i].substring(0,oraRes[i].indexOf("="))%>',
x: <%=x0%>,
y: <%=y0%>,
symbolSize: <%=oraRes[i].substring(oraRes[i].indexOf("=")+1,oraRes[i].length())%>/2,
},
<%
}%>