change xaxis label and first generalization of ResultPanel.js