Team:Virginia/Tabs

From 2014.igem.org

(Difference between revisions)
Line 12: Line 12:
<body>
<body>
    
    
-
<script type="text/javascript">
 
-
google.load("visualization", "1", {packages:["corechart"]});
 
-
function drawChart2() {
 
-
var data = google.visualization.arrayToDataTable([
 
-
['Mes','Cuenta A','Cuenta B'],
 
-
['Enero',9632,3021],
 
-
['Febrero',8253,853],
 
-
['Marzo',8692,2653]
 
-
]);
 
-
var options = {
 
-
title: 'Estado cuentas'
 
-
};
 
-
var chart = new google.visualization.LineChart(document.getElementById('chart-2'));
 
-
chart.draw(data, options);
 
-
}
 
-
</script>
 
-
 
-
<script type="text/javascript">
 
-
google.load("visualization", "1", {packages:["corechart"]});
 
-
 
-
function drawChart1() {
 
-
var data = google.visualization.arrayToDataTable([
 
-
['Mes','Gastos','Margen-Ventas','Ventas'],
 
-
['Enero',6320,7512,15035],
 
-
['Febrero',6012,3987,8658],
 
-
['Marzo',6215,6310,10366]
 
-
]);
 
-
var options = {
 
-
title: 'Ventas y costes'
 
-
};
 
-
var chart = new google.visualization.LineChart(document.getElementById('chart-1'));
 
-
chart.draw(data, options);
 
-
}
 
-
</script>
 
<!-- Tabs -->
<!-- Tabs -->

Revision as of 18:06, 16 October 2014

jQuery UI Tabs - Default functionality