This commit is contained in:
Roberto Alsina 2022-07-20 11:27:49 -03:00
parent ae79c296c5
commit 06c4c16633

View File

@ -43,7 +43,8 @@ def handle(req):
chart = pygal.Line( chart = pygal.Line(
height=200, fill=True, human_readable=True, show_minor_x_labels=False 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: for nombre in nombres:
datos = ddict(int) datos = ddict(int)
with connection.cursor() as cursor: with connection.cursor() as cursor: