added missing elements and fixed js for text display

missing <p> tag to scale height of chart and added display for
indication of sort variable.