Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paradoxxxzero committed Aug 3, 2015
1 parent 0ddcc0d commit 3d45233
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Changelog
* Activate element on tooltip hovering. (#106)
* Fix radar axis behaviour (#247)
* Add tooltip support in metadata to add a title (#249).
* Take config class options in account too.


2.0.0
Expand Down
2 changes: 1 addition & 1 deletion pygal/graph/dual.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _compute_x_labels(self):
pos = float(x_label.get('value'))
title = x_label.get('label', self._format(pos))
elif is_str(x_label):
pos = x_pos[i]
pos = x_pos[i % len(x_pos)]
title = x_label
else:
pos = self._x_adapt(float(x_label))
Expand Down
2 changes: 1 addition & 1 deletion pygal/graph/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ def _compute_y_labels(self):
pos = float(y_label.get('value'))
title = y_label.get('label', self._format(pos))
elif is_str(y_label):
pos = y_pos[i]
pos = y_pos[i % len(y_pos)]
title = y_label
else:
pos = float(y_label)
Expand Down
1 change: 1 addition & 0 deletions pygal/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class State(object):

def __init__(self, graph, **kwargs):
"""Create the transient state"""
self.__dict__.update(**graph.config.__class__.__dict__)
self.__dict__.update(**graph.config.__dict__)
self.__dict__.update(**graph.__dict__)
self.__dict__.update(**kwargs)

0 comments on commit 3d45233

Please sign in to comment.