Dinesh Santhalingam

Dinesh Santhalingam

  • NA
  • 737
  • 358.5k

How to append the array to a legend in Jqplot?

Jan 10 2017 12:00 AM
I have an Array .I want to append it to the Legend labels in Jqplot chart.
  1. var temps = [];  
  2. temps[0] = "Ax";  
  3. temps[1] = "Bx";  
  4. temps[2] = "Cx";  
  5. temps[3] = "Dx";  
  6.  opts{  
  7. legend: {  
  8. renderer: $.jqplot.EnhancedLegendRenderer,  
  9. show: true,  
  10. showLabels: true,  
  11. labels: ['Ax', 'Bx', 'Cx','Dx']//this will exactly work
  12. labels: [temps]  //Append array .It Won't working.
  13. },  
  14.  };  
 Suggest me some ideas to do it?

Answers (3)