Team:TU-Eindhoven/Template:UseGraphs

From 2013.igem.org

(Difference between revisions)
 
(One intermediate revision not shown)
Line 3: Line 3:
function loadGraphLibrary(){
function loadGraphLibrary(){
   $.getScript('https://2013.igem.org/Team:TU-Eindhoven/JS:Flot?action=raw&ctype=text/js', function(data, textStatus){
   $.getScript('https://2013.igem.org/Team:TU-Eindhoven/JS:Flot?action=raw&ctype=text/js', function(data, textStatus){
-
          console.log(textStatus, data);
 
           $.getScript('https://2013.igem.org/Team:TU-Eindhoven/Data:</html>{{{data}}}<html>?action=raw&ctype=text/js', function(data2, textStatus2){
           $.getScript('https://2013.igem.org/Team:TU-Eindhoven/Data:</html>{{{data}}}<html>?action=raw&ctype=text/js', function(data2, textStatus2){
-
                console.log(textStatus2, data2);
 
                 var data = [];
                 var data = [];
                 choiceContainer = $('#graph_value_select');
                 choiceContainer = $('#graph_value_select');
Line 13: Line 11:
});
});
-
                 $('#graph_value_select').click(plotAccordingToChoices);
+
                 $('#graph_value_select').change(plotAccordingToChoices);
function plotAccordingToChoices() {
function plotAccordingToChoices() {
Line 38: Line 36:
                 $('#graph_xlabel').html(graphoptions.xlabel);
                 $('#graph_xlabel').html(graphoptions.xlabel);
                 $('#graph_xlabel').show();
                 $('#graph_xlabel').show();
-
                 $('#graph_xlabel').html(graphoptions.ylabel);
+
                 $('#graph_ylabel').html(graphoptions.ylabel);
                 $('#graph_ylabel').show();
                 $('#graph_ylabel').show();
});
});

Latest revision as of 13:02, 17 August 2013