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 51 52 53 54 55 56
| <div class="form-actions">
<input type="button" value="Lancer l'impression" onclick="javascript:openWin()" />
</div>
<!-- Thermogramme du jour-->
<div class="widget">
<div id="printablediv">
<div class="body">
<div class="bars" id="barThermo" style="height:400px"></div>
<script language="javascript" type="text/javascript">
// Les données
var data = <?php echo json_encode($dataThermo); ?>;
// Les options de mise en forme
var options = {
legend: {
show: false,
position: 'se'
},
xaxes: [
{
show: true,
tickSize: 1,
ticks : [ [ 4, "08:00"], [ 8, "09:00"], [12, "10:00"],
[16, "11:00"], [20, "12:00"], [24, "13:00"],
[28, "14:00"], [32, "15:00"], [36, "16:00"],
[40, "17:00"], [44, "18:00"], [48, "19:00"],
[52, "20:00"], [56, "21:00"], [60, "22:00"] ]
},
{
position: 'top',
show: true,
tickSize: 1,
ticks : [ [ 4, "08:00"], [ 8, "09:00"], [12, "10:00"],
[16, "11:00"], [20, "12:00"], [24, "13:00"],
[28, "14:00"], [32, "15:00"], [36, "16:00"],
[40, "17:00"], [44, "18:00"], [48, "19:00"],
[52, "20:00"], [56, "21:00"], [60, "22:00"] ]
}
],
yaxis: {
show: true,
tickSize: 1,
min:0.5,
ticks: <?php echo json_encode($tickThermo); ?>
},
grid: { show: true }
};
// Génération du graphique
$.plot($("#barThermo"), data, options);
</script>
</div>
</div>
</div> |
Partager