I have the following mysql table which obtained by following query(select * from tables); | time | queue_name | description | priority | jobs_pending | jobs_running | | 1490155563 | adice_long | ADICE Low-Priority/Long Runtime Job Queue | 5 | 6 | 3 | 1490155563 | adice | ADICE Low-Priority/Long Runtime Job Queue | 8 | 9 | 3 | | 1490155563 | incisive | ADICE-Incisive Co-Simulation Queue | 7 | 0 | | 1490155563 | vcs | ADICE High-Priority/Short Runtime Job Queue | 10 | 0 | | #### print "var data_running=[[\"Adice \($TABLE_DATA{1}{'ENTRY'}\)\",$TABLE_DATA{5}{'ENTRY'}],\ [\"Incisive \($TABLE_DATA{1}{'ENTRY'}\)\",$TABLE_DATA{5}{'ENTRY'}],\ [\"Vcs \($TABLE_DATA{1}{'ENTRY'}\)\",$TABLE_DATA{5}{'ENTRY'}], \n"; print "var data_pending=[[\"Adice \($TABLE_DATA{1}{'ENTRY'}\)\",$TABLE_DATA{4}{'ENTRY'}],\ [\"Incisive \($TABLE_DATA{1}{'ENTRY'}\)\",$TABLE_DATA{4}{'ENTRY'}],\ [\"Vcs \($TABLE_DATA{1}{'ENTRY'}\)\",$TABLE_DATA{4}{'ENTRY'}],\n"; #### print " \n pieChart(\"placeholder39\",data_running,{title:\"
Jobs Running
\"});\n"; print " \n pieChart(\"placeholder41\",data_pending,{title:\"
Jobs Pending
\"});\n";