--- 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,