Skip to content

Commit

Permalink
Consistent 1px gap. wireservice#26
Browse files Browse the repository at this point in the history
  • Loading branch information
nbedi committed Jun 17, 2016
1 parent 01ddf14 commit 570bf53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/charts/grouped_columns.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion leather/shapes/grouped_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def to_svg(self, width, height, x_scale, y_scale, series, palette):
x1, x2 = x_scale.project_interval(d.z, 0, width)

group_width = (x2 - x1) / category_counts[d.z]
x2 = x1 + (group_width * (seen_counts[d.z] + 1)) + 1
x2 = x1 + (group_width * (seen_counts[d.z] + 1)) - 1
x1 = x1 + (group_width * seen_counts[d.z])

proj_y = y_scale.project(d.y, height, 0)
Expand Down

0 comments on commit 570bf53

Please sign in to comment.