web/views/plots.py
changeset 3890 d7a270f50f54
parent 3720 5376aaadd16b
parent 3785 78909a156011
child 4045 f4a52abb6f4f
equal deleted inserted replaced
3810:5b75fd66c80e 3890:d7a270f50f54
   116             plotdata.append("{label: '%s', data: %s}" % (label.replace(u'&', u''), plotid))
   116             plotdata.append("{label: '%s', data: %s}" % (label.replace(u'&', u''), plotid))
   117         req.html_headers.add_onload(self.onload %
   117         req.html_headers.add_onload(self.onload %
   118                                     {'plotdefs': '\n'.join(plotdefs),
   118                                     {'plotdefs': '\n'.join(plotdefs),
   119                                      'figid': figid,
   119                                      'figid': figid,
   120                                      'plotdata': ','.join(plotdata),
   120                                      'plotdata': ','.join(plotdata),
   121                                      'mode': self.timemode and "'time'" or 'null'})
   121                                      'mode': self.timemode and "'time'" or 'null'},
       
   122                                     jsoncall=req.form.get('jsoncall', False))
   122 
   123 
   123 
   124 
   124 class PlotView(baseviews.AnyRsetView):
   125 class PlotView(baseviews.AnyRsetView):
   125     __regid__ = 'plot'
   126     __regid__ = 'plot'
   126     title = _('generic plot')
   127     title = _('generic plot')