]> granicus.if.org Git - pgbadger/commitdiff
Keep tick formatting when zooming.
authorJulien Rouhaud <julien.rouhaud@free.fr>
Wed, 3 Sep 2014 14:17:43 +0000 (16:17 +0200)
committerJulien Rouhaud <julien.rouhaud@free.fr>
Wed, 3 Sep 2014 14:17:43 +0000 (16:17 +0200)
pgbadger

index 3cb561789c8a9ffa0bb8f4e9dba6e09182aa9668..092585058f0c26ca34997fc3d53475d3f17b0fde 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -10012,7 +10012,8 @@ document.writeln('<div class="pull-right btn-group"><input type="button" class="
             },
             yaxis: {
                 min: area.y1,
-                max: area.y2
+                max: area.y2,
+                tickFormatter: function(val){ return pretty_print_number(val,'$type') }
             }
         });
     });
@@ -10254,7 +10255,8 @@ sub flotr2_histograph
             },
             yaxis: {
                 min: area.y1,
-                max: area.y2
+                max: area.y2,
+                tickFormatter: function(val){ return pretty_print_number(val,'') }
             }
         });
     });