From 73cb4345a3965d01fc36dac3e734d939b5a3dd97 Mon Sep 17 00:00:00 2001 From: almossawi Date: Thu, 15 May 2014 12:47:16 -0700 Subject: [PATCH] Fix issue #46 --- js/metrics-graphics.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/metrics-graphics.js b/js/metrics-graphics.js index 54b962cb5d..8691bb9e55 100644 --- a/js/metrics-graphics.js +++ b/js/metrics-graphics.js @@ -179,7 +179,7 @@ function xAxis(args) { .attr('dy', '.50em') .attr('text-anchor', 'middle') .text(function(d) { - return args.xax_format(d); + return args.xax_units + args.xax_format(d); }) //are we adding years to x-axis @@ -255,8 +255,7 @@ function yAxis(args) { .domain([0, max_y * args.inflator]) .range([args.height - args.bottom - args.buffer, args.top]); - - var yax_format; // currently, {count, percentage} + var yax_format; if (args.format == 'count') { yax_format = function(f) { var pf = d3.formatPrefix(f);