Skip to content

Commit

Permalink
Fix issue w3c#46
Browse files Browse the repository at this point in the history
  • Loading branch information
almossawi committed May 15, 2014
1 parent aa65bcd commit 73cb434
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/metrics-graphics.js
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 73cb434

Please sign in to comment.