<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" import="java.util.*"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>echarts</title><script src="echarts.min.js"></script></head><body><% int z=4; int y=3; int x=5; int w=5; int v=5; int u=5;%><div id="main" style="width:600px;height:600px;"></div><script type="text/javascript">var a=z.value;var b=y.value;var c=x.value;var d=w.value;var e=u.value;var f=v.value;var myChart=echarts.init(document.getElementById('main')); var option = { title: { text: '学生技能展示系统' }, tooltip: {}, legend: { data: ['学生'] }, radar: { // shape: 'circle', indicator: [ { name: '数理水平', max: 6}, { name: '专业技巧', max: 6}, { name: '动手能力', max: 6}, { name: '英语水平', max: 6}, { name: '文化素质', max: 6}, { name: '身体素质', max: 6} ] }, series: [{ type: 'radar', // areaStyle: {normal: {}}, data : [ { value : [a,b,c,d,e,f], label: { normal: { show: true, formatter:function(params) { return params.value; } } } } ] }] }; myChart.setOption(option);</script></body></html>为什么不能把上面a,b,c,d,e,f的值传入下面的script里面去啊,怎么才能把这些值传进去啊??
添加回答
举报
0/150
提交
取消