jQuery(document).ready(function() {
var firstv=10;
var secondv=20;
var thirdv=70;
var name1=ram;
var name2=kumar;
var name3=manju;
var data = [ [name1, firstv],[name2, secondv], [name3, thirdv]];
var plot1 = jQuery.jqplot('chart', [data],
{
grid: {
shadow: false,
background: '#FFFFFF',
},
seriesDefaults: {
// Make this a pie chart.
renderer: jQuery.jqplot.PieRenderer,
rendererOptions: {
showDataLabels: true,
padding: 20,
startAngle: 270
}
},
legend: {
show: true,
location: 'e',
fontSize: 11,
marginTop: 10,
}
});
});
如果我将值分配给 var ,它不会获取它吗?