 var dataset = {
                                label: datasequences[i].title,
                                strokeColor: GRAPH_COLORS[color_index],
                                data: values
                            }
                            datasets.push(dataset);

                            // Assign a different color to each line.
                            color_index++;
                            if (color_index > GRAPH_COLORS.length-1) {
                                color_index = 0;