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に値を割り当てると、フェッチされませんか?