web/views/plots.py
branchstable
changeset 3785 78909a156011
parent 3714 3cb7dcd9ae77
child 3890 d7a270f50f54
child 4209 8712d699beb2
equal deleted inserted replaced
3784:2465ef6aef5f 3785:78909a156011
   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     id = 'plot'
   126     id = 'plot'
   126     title = _('generic plot')
   127     title = _('generic plot')