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: