cfpb/consumer-credit-trends

Deep subprime credit cards line charts axis has duplicate tick lines

Closed this issue · 5 comments

cfarm commented

image

Decimal billions are appearing incorrectly. All the horizontal lines below the top line are appearing twice on the chart, which makes it hard to know what the graph is showing.

Here's the local site link and the github pages link

It's also happening on the "65 and older" lending by borrower age chart for student loans:

screen shot 2016-12-14 at 7 40 13 pm

These seem to be the only charts which currently have a top value that is less than 1.0 billion.

Idea for a possible cause (suggested by @hillaryj, who is the person who originally found the duplicate tick lines problem):

Maybe it's trying to show 0, 0.05B, 0.1B, 0.15B, etc but is being capped at one decimal place?

@marteki - Exactly. It's cutting the string too short.

I have a fix for this already in my next revision to cfpb-chart-builder so I can get version 0.0.9 out to fix this.

Fixed here: cfpb/cfpb-chart-builder#9

EDIT: And cfpb-chart-builder is updated here: #42