Team:Sevilla/test3

From 2011.igem.org

(Difference between revisions)
Line 13: Line 13:
         data.addColumn('number', 'Hours per Day');
         data.addColumn('number', 'Hours per Day');
         data.addRows(5); //las 5 divisiones
         data.addRows(5); //las 5 divisiones
-
         data.setValue(0, 0, 'Biología');
+
         data.setValue(0, 0, 'Biología');//el primero es el id, el segundo siempre 0 y el tercero la etiqueta
-
         data.setValue(1, 1, 2);
+
         data.setValue(0, 1, 2); //el primero es a que id corresponde, el segundo siempre es 1 y el tercero el valor
         data.setValue(1, 0, 'Biotecnología');
         data.setValue(1, 0, 'Biotecnología');
-
         data.setValue(0, 1, 4);
+
         data.setValue(1, 1, 4);
         data.setValue(2, 0, 'Ing Informática');
         data.setValue(2, 0, 'Ing Informática');
         data.setValue(2, 1, 3);
         data.setValue(2, 1, 3);

Revision as of 12:25, 5 April 2011