Team:TU-Eindhoven/Template:UseGraphs

From 2013.igem.org

(Difference between revisions)
Line 4: Line 4:
$(function() {
$(function() {
                 var data = [];
                 var data = [];
-
 
+
                 choiseContainer = $('#graph_value_select');
-
                 var i = 0;
+
                $.each(datasets, function(key, val) {
-
$.each(datasets, function(key, val) {
+
choiceContainer.append("<option value='" + key +
-
val.color = i;
+
"'>" + val.label + "</option>");
-
++i;
+
});
});

Revision as of 00:12, 17 August 2013