Team:TU-Eindhoven/Template:UseGraphs

From 2013.igem.org

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

Latest revision as of 13:02, 17 August 2013