Skip to content
Permalink
Browse files

fix #2142

  • Loading branch information
ralsina committed Oct 14, 2015
1 parent 5a968fb commit 81f6d6e8d9ffe14558fb2f81129b8880868d5677
Showing with 4 additions and 2 deletions.
  1. +4 −2 nikola/plugins/compile/rest/chart.py
@@ -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)

0 comments on commit 81f6d6e

Please sign in to comment.
You can’t perform that action at this time.