怎么给柱形图和折线图取名字
毕业设计
1
</head>
<body>
<div id="jqChart" class="page_speed_2131720421"></div>
</body>
<script>
$(function(){
$("#jqChart").jqChart({
title:{text:'考试情况'},
axes:[
{
location:'left',
minimum:10,
maximum:100,
interval:10
}
],
series:[
{
type:'column',
data:[['语文',80],['数学',90],['英语',91],['体育',80],]
},
{
type:'line',
data:[['语文',75],['数学',20],['英语',78],['体育',79],]
}
]
});
});
</script>
</html>
-
$(document).ready(function () { $("#jqChart").jqChart({ title:{text:'考试情况'}, axes:[ { location:'left', minimum:10, maximum:100, interval:10 } ], series:[ { title:"学生1", type:'line', data:[['语文',80],['数学',90],['英语',91],['体育',80],] }, { title:"学生2", type:'line', data:[['语文',75],['数学',20],['英语',78],['体育',79],] } ] }); })
发表回复