Changed from matplotlib to flot charts