[SPIP] ~version 3.0.7-->3.0.10
[ptitvelo/web/www.git] / www / plugins-dist / statistiques / prive / stats / visites.html
index f5ef652..52b7905 100644 (file)
@@ -13,14 +13,15 @@ function trace_stats_table(table, classes, options) {
 
        // copier le titre des tableaux
        titre = $table.find("caption").text();
+       $table.siblings('.pagination').before("<h3 class='caption'>" + titre + "</h3>");
        $table
-               .before("<h3 class='caption'>" + titre + "</h3>")
+
                .wrap("<div class='" + classes + "'></div>");
 
        // mettre les visites avec un fond colore pour le graphique
-       $table.find("thead th:eq(1)").data({fill: true, serie: 'bar', color: '#FFD845'});
+       $table.find("thead th:eq(1)").data({fill: true, serie: 'bar', color: '#FFD845',lineWidth:0});
        $table.find("thead th:eq(2)").data({serie: 'line', color: '#7FC4FF'});
-       $table.find("thead th:eq(3)").data({fill: true, serie: 'bar', color: '#A9DD3A'});
+       $table.find("thead th:eq(3)").data({fill: true, serie: 'bar', color: '#A9DD3A',lineWidth:0});
        
        // mettre les previsions en premier
        // (pour que les autres graph passent par dessus)
@@ -34,7 +35,7 @@ function trace_stats_table(table, classes, options) {
        params = {
                legendeExterne:true,
                legendeActions:true,
-               width:($('.large #page').length)?'695px':'500px', // 795px, 600px (sans le tableau de resume) ...
+               width:($('.large #page').length)?'755px':'560px', // 795px, 600px (sans le tableau de resume) ...
                height:'250px',
                modeDate:true,
                zoom:true,
@@ -47,6 +48,9 @@ function trace_stats_table(table, classes, options) {
                        }
                },
                flot:{
+                       grid:{
+                               axismargin:10
+                       },
                        xaxis:{
                                labelWidth:45,
                                monthNames: [
@@ -63,6 +67,9 @@ function trace_stats_table(table, classes, options) {
                                        '[(#VAL{2000-11-01}|nom_mois)]',
                                        '[(#VAL{2000-12-01}|nom_mois)]'
                                ]
+                       },
+                       yaxis:{
+                               position: "right"
                        }
                },
                infobulle:{show:true}
@@ -79,6 +86,7 @@ function trace_stats(){
                        grille:{weekend:true},
                        flot:{
                                xaxis:{
+                                       timeformat:"%d %b",
                                        minTickSize: [1, "day"]
                                },
                                bars:{barWidth:24 * 60 * 60 * 1000}
@@ -94,7 +102,7 @@ function trace_stats(){
                                        timeformat:"%b %y",
                                        minTickSize: [1, "month"]
                                },
-                               bars:{barWidth:30 * 24 * 60 * 60 * 1000 /* nb de jours... approximatif */}
+                               bars:{barWidth:30.4 * 24 * 60 * 60 * 1000 /* nb de jours... approximatif */}
                        }
        });