From 06c4c16633b4f7b43b4d0ed201a5e947aaa4c25d Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Wed, 20 Jul 2022 11:27:49 -0300 Subject: [PATCH] nada --- nombres/historico/handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nombres/historico/handler.py b/nombres/historico/handler.py index 244894e..57a2c44 100644 --- a/nombres/historico/handler.py +++ b/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: