Skip to content

Commit

Permalink
Truncate charts to make things prettier.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Jun 5, 2015
1 parent c8df32b commit 073e549
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions datagrepper/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,11 @@ def make_charts(chart_type):
)
values.append(count)
tag = factor and " & ".join(factor) or "events"

# Truncate things to make charts prettier
if tag.startswith('org.fedoraproject.prod.'):
tag = tag[len('org.fedoraproject.prod.'):]

chart.add(tag, values)

chart.x_labels = labels
Expand Down

0 comments on commit 073e549

Please sign in to comment.