X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fplugins-dist%2Fstatistiques%2Fprive%2Fstats%2Fvisites.html;h=52b7905f82559f601b0d700c5dca218f7421306d;hp=f5ef65207b0f0638134fbc5c99102493b1510804;hb=f489d45ae677afde12ba9c9f70f463ea34787b45;hpb=0dda6af18a04031b1ca8e217187966077e752fe3
diff --git a/www/plugins-dist/statistiques/prive/stats/visites.html b/www/plugins-dist/statistiques/prive/stats/visites.html
index f5ef652..52b7905 100644
--- a/www/plugins-dist/statistiques/prive/stats/visites.html
+++ b/www/plugins-dist/statistiques/prive/stats/visites.html
@@ -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("
" + titre + "
");
$table
- .before("" + titre + "
")
+
.wrap("");
// 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 */}
}
});