Update viewandcompare.php

1-make the graph more dynamic 
2-fix the drop-down menu name issue..