diff --git a/readme.txt b/readme.txt index 18cc89e..7fddea3 100644 --- a/readme.txt +++ b/readme.txt @@ -86,6 +86,7 @@ Changes * Fixed bug in rendering of Pie Chart styles. * Improved testing framework. Now samples are at least generated as part of the test suite. +* Fixed bug in javascript when label ids had spaces. See #3139197. 2.0.6 ~~~~~ diff --git a/svg/charts/graph.py b/svg/charts/graph.py index 79eca8e..ef29b0a 100644 --- a/svg/charts/graph.py +++ b/svg/charts/graph.py @@ -239,7 +239,7 @@ class Graph(object): }) # add the circle element to the foreground - visibility = "document.getElementById(%s).setAttribute('visibility', %%s)" % id + visibility = "document.getElementById('%s').setAttribute('visibility', %%s)" % id t = etree.SubElement(self.foreground, 'circle', { 'cx': str(x), 'cy': str(y),