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
| $(document).ready(function()
{
// initialisation des données
// var serie = '<? echo $Chainehp; ?>';
courbe = $.jqplot('conteneur',[ ['2011-02-13 00:00:04',8000.0],['2011-02-13 00:10:05',1000.0], ['2011-02-13 00:20:05',20.0], ['2011-02-13 00:30:03',10.0],['2011-02-13 00:40:04',0.0],['2011-02-13 00:50:04',0.0]],
{
title: 'Courbe d\'évolution des visites',
axes :
{
xaxis :
{
renderer:$.jqplot.DateAxisRenderer,
min:'2011-02-13 00:00:04',
tickInterval: '10 minutes',
tickOptions:{formatString:'%Y-%m-%d %H:%M:%S'}
},
yaxis :
{
renderer: $.jqplot.LogAxisRenderer,
ticks: [0,2000, 4000, 6000, 14000]
}
},cursor:{zoom:true, showTooltip:false}
});
});
</script>
</head>
<body>
<!-- définition du conteneur -->
<div id="conteneur"></div>
<body>
</html> |
Partager