Use flot.js for graphs and prepare them for showing multiple lines.