Roberto Alsina 10 months ago
parent
commit
06c4c16633
  1. 3
      nombres/historico/handler.py

3
nombres/historico/handler.py

@ -43,7 +43,8 @@ def handle(req):
chart = pygal.Line(
height=200, fill=True, human_readable=True, show_minor_x_labels=False
)
chart.x_labels = range(1922, 2015)
chart.x_labels = [str(x) for x in range(1922, 2015)]
chart.x_labels_major = [str(x) if x % 10 == 0 else "" for x in range(1922, 2015)]
for nombre in nombres:
datos = ddict(int)
with connection.cursor() as cursor:

Loading…
Cancel
Save