web/views/plots.py
branchstable
changeset 3714 3cb7dcd9ae77
parent 3689 deb13e88e037
child 3720 5376aaadd16b
child 3785 78909a156011
--- a/web/views/plots.py	Fri Oct 16 18:44:28 2009 +0200
+++ b/web/views/plots.py	Sun Oct 18 19:06:24 2009 +0200
@@ -112,7 +112,8 @@
         for idx, (label, plot) in enumerate(zip(self.labels, self.plots)):
             plotid = '%s_%s' % (figid, idx)
             plotdefs.append('var %s = %s;' % (plotid, self.dump_plot(plot)))
-            plotdata.append("{label: '%s', data: %s}" % (label, plotid))
+            # XXX ugly but required in order to not crash my demo
+            plotdata.append("{label: '%s', data: %s}" % (label.replace(u'&', u''), plotid))
         req.html_headers.add_onload(self.onload %
                                     {'plotdefs': '\n'.join(plotdefs),
                                      'figid': figid,