From a6e0dcf3a366f268645cabf200c7781bb0148c40 Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Tue, 26 Apr 2016 14:47:01 +0200 Subject: [PATCH] Add class for sparkline --- pygal/graph/public.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pygal/graph/public.py b/pygal/graph/public.py index 8cf3ecd..ba6332d 100644 --- a/pygal/graph/public.py +++ b/pygal/graph/public.py @@ -21,7 +21,7 @@ import base64 import io -from pygal._compat import is_list_like, u +from pygal._compat import is_list_like, u, _ellipsis from pygal.graph.base import BaseGraph @@ -156,7 +156,8 @@ class PublicApi(BaseGraph): min_scale=1, max_scale=2, explicit_size=True, - no_data_text='' + no_data_text='', + classes=(_ellipsis, 'pygal-sparkline') ) spark_options.update(kwargs) return self.render(**spark_options)