web/views/plots.py
changeset 1911 16af47588d41
parent 1892 fb80d9c434e5
child 1956 9865daa96cd7
equal deleted inserted replaced
1910:864aa3ea0db5 1911:16af47588d41
    85 jQuery.plot(jQuery("#%(figid)s"), [%(plotdata)s],
    85 jQuery.plot(jQuery("#%(figid)s"), [%(plotdata)s],
    86     {points: {show: true},
    86     {points: {show: true},
    87      lines: {show: true},
    87      lines: {show: true},
    88      grid: {hoverable: true},
    88      grid: {hoverable: true},
    89      xaxis: {mode: %(mode)s}});
    89      xaxis: {mode: %(mode)s}});
    90 jQuery('#%(figid)s').bind('plothover', onPlotHover);
    90 jQuery("#%(figid)s").bind("plothover", onPlotHover);
    91 '''
    91 '''
    92 
    92 
    93     def __init__(self, labels, plots, timemode=False):
    93     def __init__(self, labels, plots, timemode=False):
    94         self.labels = labels
    94         self.labels = labels
    95         self.plots = plots # list of list of couples
    95         self.plots = plots # list of list of couples