Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #2142
  • Loading branch information
ralsina committed Oct 14, 2015
1 parent 5a968fb commit 81f6d6e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nikola/plugins/compile/rest/chart.py
Expand Up @@ -148,8 +148,10 @@ def run(self):
style = getattr(pygal.style, style_name)
for k, v in self.options.items():
options[k] = literal_eval(v)

chart = getattr(pygal, self.arguments[0])(style=style)
chart = pygal
for o in self.arguments[0].split('.'):
chart = getattr(chart, o)
chart = chart(style=style)
if _site and _site.invariant:
chart.no_prefix = True
chart.config(**options)
Expand Down

0 comments on commit 81f6d6e

Please sign in to comment.