I have an Array .I want to append it to the Legend labels in Jqplot chart.
var temps = [];
temps[0] = "Ax";
temps[1] = "Bx";
temps[2] = "Cx";
temps[3] = "Dx";
opts{
legend: {
renderer: $.jqplot.EnhancedLegendRenderer,
show: true,
showLabels: true,
//labels: ['Ax', 'Bx', 'Cx','Dx'] - this will exactly work
labels: [temps] //Append array .It Won't working.
},
};
You have to use simply: labels: temps
.
temps
is already an array.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments