Skip to content

Commit

Permalink
Adding random colors to bar graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerdie committed Feb 20, 2017
1 parent f3aeba6 commit a5740f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@ def createBar(self):
print entry.response.body_size
data["labels"].append(entry.request.url[7:18])
data["datasets"][0]["data"].append(entry.response.body_size)
data["datasets"][0]["backgroundColor"].append(generate_random_color())
print data
return data

Binary file modified static/img/bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a5740f8

Please sign in to comment.