Skip to content

Commit

Permalink
Gráfico de cutoas con responsividad resuelve issue #9
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucasgl committed Jun 5, 2015
1 parent 69b64bc commit 6bf732f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions metaespacio/cuotas/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ def get_context_data(self, **kwargs):
for k, x in context['sumas'].items():
data.append([str(k.strftime('%b / %Y'))] + x[:-1])
print(data)
chart = BarChart(SimpleDataSource(data=data), options={'isStacked': True, \
'title': 'Mensualidades', 'vAxis': {'title': 'Meses'}})
chart = BarChart(SimpleDataSource(data=data), width="100%;", \
height="auto;", options={'isStacked': True, 'title': 'Mensualidades', \
"colors": ["#32CD32", "#4169E1", "#FFA500"], 'vAxis': {'title': 'Meses'}})
context['chart'] = chart
return context

Expand Down

0 comments on commit 6bf732f

Please sign in to comment.