Changeset 1442


Ignore:
Timestamp:
10/31/15 15:32:36 (9 years ago)
Author:
nanardon
Message:

Enable cursor plugin in jqplot

Location:
trunk/LATMOS-Accounts-Web/root/html
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/root/html/includes/wrapper.tt

    r1438 r1442  
    1616<script src="[% c.uri_for('/static', 'js', 'jqplot', 'plugins', 'jqplot.pieRenderer.js') %]"></script> 
    1717<script src="[% c.uri_for('/static', 'js', 'jqplot', 'plugins', 'jqplot.dateAxisRenderer.js') %]"></script> 
     18<script src="[% c.uri_for('/static', 'js', 'jqplot', 'plugins', 'jqplot.cursor.js') %]"></script> 
    1819<link rel="stylesheet" href="[% c.uri_for('/static/js/jqplot/jquery.jqplot.css') %]" type="text/css"> 
    1920 
  • trunk/LATMOS-Accounts-Web/root/html/stat/index.tt

    r1438 r1442  
    6262    }); 
    6363 
     64    $.jqplot.config.enablePlugins = true; 
     65 
    6466    $.ajax({ 
    6567      // have to use synchronous here, else the function 
     
    7577                    xaxis: { 
    7678                        renderer: $.jqplot.DateAxisRenderer,  
    77                         tickOptions: {formatString:'%b %#d, %#I %p'}, 
     79                        rendererOptions:{ 
     80                            tickRenderer:$.jqplot.CanvasAxisTickRenderer 
     81                        }, 
     82                        tickOptions: { 
     83                            formatString:'%b %#d, %#I %p', 
     84                            fontSize:'10pt', 
     85                            fontFamily:'Tahoma', 
     86                            angle:-40 
     87                        }, 
    7888                        tickInterval:'1 months', 
    7989                    } 
     
    94104                    show: true 
    95105                }, 
     106                cursor:{ 
     107                    zoom:true, 
     108                    looseZoom: true 
     109                }, 
    96110                series: data.series 
    97111            } 
Note: See TracChangeset for help on using the changeset viewer.