web/views/plots.py
branchstable
changeset 5041 ebdab53b0c45
parent 4721 8f63691ccb7f
child 5377 84d14ddfae13
equal deleted inserted replaced
5040:00782905b720 5041:ebdab53b0c45
   113             plotdata.append("{label: '%s', data: %s}" % (label.replace(u'&', u''), plotid))
   113             plotdata.append("{label: '%s', data: %s}" % (label.replace(u'&', u''), plotid))
   114         req.html_headers.add_onload(self.onload %
   114         req.html_headers.add_onload(self.onload %
   115                                     {'plotdefs': '\n'.join(plotdefs),
   115                                     {'plotdefs': '\n'.join(plotdefs),
   116                                      'figid': figid,
   116                                      'figid': figid,
   117                                      'plotdata': ','.join(plotdata),
   117                                      'plotdata': ','.join(plotdata),
   118                                      'mode': self.timemode and "'time'" or 'null'},
   118                                      'mode': self.timemode and "'time'" or 'null'})
   119                                     jsoncall=req.json_request)
       
   120 
   119 
   121 
   120 
   122 class PlotView(baseviews.AnyRsetView):
   121 class PlotView(baseviews.AnyRsetView):
   123     __regid__ = 'plot'
   122     __regid__ = 'plot'
   124     title = _('generic plot')
   123     title = _('generic plot')