1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
<script type="text/javascript">
// mes donnees
var data=new array();
data[1] ="0,0,51";
data[2] ="0,1,0.04";
data[3] ="0,2,0.56";
data[4] ="0,3,81.07";
data[5] ="1,0,52";
data[6] ="1,1,387.19";
data[7] ="1,2,331.24";
data[8] ="1,3,12707.13";
data[9] ="2,0,55";
data[10] ="2,1,27632.49";
data[11] ="2,2,9345.7";
data[12] ="2,3,27139.6";
data[13] ="3,0,56";
data[14] ="3,1,0.84";
data[15] ="3,2,1.26";
data[16] ="3,3,46.2";
data[17] ="4,0,58";
data[18] ="4,1,2703.33";
data[19] ="4,2,3938.66";
data[20] ="4,3,8576.31";
google.load('visualization', '1', {packages: ['table']});
function drawVisualization() {
// Create and populate the data table.
var data = new google.visualization.DataTable();
data.addColumn('number','CentreHosp');
data.addColumn('number','Gen1st');
data.addColumn('number','Gen2nd');
data.addColumn('number','Gen3em');
data.addRows(5);
for (j=0;j=5;j++)
{
for(k=0;k<3;k++)
{
data.setValue(j,k,51);
}
}
// Create and draw the visualization.
var table = new google.visualization.Table(document.getElementById('visualization'));
table.draw(data, {allowHtml: true, showRowNumber: true});
}
google.setOnLoadCallback(drawVisualization);
</script> |
Partager