diff --git a/demo/cabaret/templates/_layout.jinja2 b/demo/cabaret/templates/_layout.jinja2 index f1d3307..aca955e 100644 --- a/demo/cabaret/templates/_layout.jinja2 +++ b/demo/cabaret/templates/_layout.jinja2 @@ -4,8 +4,7 @@ Cabaret - Online pygal graph generator - - + diff --git a/demo/moulinrouge/__init__.py b/demo/moulinrouge/__init__.py index 457ed6e..c9f9bfa 100644 --- a/demo/moulinrouge/__init__.py +++ b/demo/moulinrouge/__init__.py @@ -293,9 +293,7 @@ def create_app(): chart.title = color chart.disable_xml_declaration = True chart.explicit_size = True - chart.js = [ - 'http://l:2343/svg.jquery.js', - 'http://l:2343/pygal-tooltips.js'] + chart.js = ['http://l:2343/2.0.x/pygal-tooltips.js'] for i in range(6): chart.add(str(i), 2 ** i) svgs.append(chart.render()) diff --git a/demo/moulinrouge/templates/raw_svgs.jinja2 b/demo/moulinrouge/templates/raw_svgs.jinja2 index 1a24db7..3fbab80 100644 --- a/demo/moulinrouge/templates/raw_svgs.jinja2 +++ b/demo/moulinrouge/templates/raw_svgs.jinja2 @@ -1,8 +1,7 @@ {% extends '_layout.jinja2' %} {% block js %} - - + {% endblock js %} {% block section %} diff --git a/demo/moulinrouge/tests.py b/demo/moulinrouge/tests.py index 51ebcb1..18c2ba8 100644 --- a/demo/moulinrouge/tests.py +++ b/demo/moulinrouge/tests.py @@ -49,8 +49,7 @@ def get_test_routes(app): @app.route('/test/bar_links') def test_bar_links(): bar = Bar(style=styles['neon']) - bar.js = ('http://l:2343/svg.jquery.js', - 'http://l:2343/pygal-tooltips.js') + bar.js = ('http://l:2343/2.0.x/pygal-tooltips.js',) bar.add('1234', [ {'value': 10, 'label': 'Ten', @@ -382,8 +381,7 @@ def get_test_routes(app): def test_config(): class LolConfig(Config): - js = ['http://l:2343/svg.jquery.js', - 'http://l:2343/pygal-tooltips.js'] + js = ['http://l:2343/2.0.x/pygal-tooltips.js'] stacked = StackedBar(LolConfig()) stacked.add('1', [1, 2, 3]) diff --git a/docs/documentation/other_customizations.rst b/docs/documentation/other_customizations.rst index f312185..3964eec 100644 --- a/docs/documentation/other_customizations.rst +++ b/docs/documentation/other_customizations.rst @@ -35,8 +35,7 @@ Default: css = ['style.css', 'graph.css'] js = [ - 'http://kozea.github.com/pygal.js/javascripts/svg.jquery.js', - 'http://kozea.github.com/pygal.js/javascripts/pygal-tooltips.js' + 'http://kozea.github.com/pygal.js/latest/pygal-tooltips.js' ] diff --git a/docs/documentation/web.rst b/docs/documentation/web.rst index 45e791a..f2d3e8d 100644 --- a/docs/documentation/web.rst +++ b/docs/documentation/web.rst @@ -38,8 +38,7 @@ You have to put the javascript manually in you webpage, for instance: - - + diff --git a/pygal/config.py b/pygal/config.py index e455434..9cab260 100644 --- a/pygal/config.py +++ b/pygal/config.py @@ -408,8 +408,7 @@ class Config(CommonConfig): # Misc # js = Key( - ('http://kozea.github.io/pygal.js/javascripts/svg.jquery.js', - 'http://kozea.github.io/pygal.js/javascripts/pygal-tooltips.js'), + ('http://kozea.github.io/pygal.js/2.0.x/pygal-tooltips.min.js',), list, "Misc", "List of js file", "It can be a filepath or an external link", str) diff --git a/pygal/svg.py b/pygal/svg.py index ce0059d..4323927 100644 --- a/pygal/svg.py +++ b/pygal/svg.py @@ -69,7 +69,7 @@ class Svg(object): self.root.attrib['class'] = 'pygal-chart' self.root.append( etree.Comment(u( - 'Generated with pygal %s (%s) ©Kozea 2011-2014 on %s' % ( + 'Generated with pygal %s (%s) ©Kozea 2011-2015 on %s' % ( __version__, 'lxml' if etree.lxml else 'etree', date.today().isoformat()))))