$(document).ready(function() {
var yuqi="{$yuqi}";
var shiji={$shiji};
var shijian={shijian};
var data = [[20,20,11,30],[22,20,10,11,]];
alert(data)
var data_max = 30; //Y轴最大刻度
var line_title = ["预期","实际"]; //曲线名称
var y_label = "这是Y轴"; //Y轴标题
var x_label = "这是X轴"; //X轴标题
var x = [1,2,3,4,5,6,7,8,9]; //定义X轴刻度值
var title = "这是标题"; //统计图标标题
j.jqplot.diagram.base("chart1", data, line_title, "这是统计标题", x, x_label, y_label, data_max, 1);
j.jqplot.diagram.base("chart2", data, line_title, "这是统计标题", x, x_label, y_label, data_max, 2);
});
我想把data里的值替换成我接过来的数组的内容,但是现在感觉没法下手,求大神指导
Caballarii
慕瓜9220888