anchor.diff:                      
                           tmp.push(this);
                         });
  -                  
  -                      result = tmp;
  -
  -                      $.plot($("#<portlet:namespace />chart"), result, {
  -                        legend:
  -                          {
  -                          show: false && <%= renderRequest.getWindowState().equals(WindowState.MAXIMIZED) ? "true" : "false"%>,
  -                          position: "se"
  -                        },
  -                        series: {
  -                          lines: { show: true, fill: enablePlane},
  -                          bars: { show: false },
  -                          points: { show: false }
  -                        },
  -                        grid: { hoverable: true, clickable: true },
  -
  -                        xaxis: {
  -                          mode: "time"
  -                        },
  -                        yaxis: {
  -                          min: 0,
  -                          tickFormatter: function (v, axis) { return (v / 1000) +"k LOC" }
  -												
  -                        }/*,
  -                        zoom: {
  -                          interactive: true
  -                        },
  -                        pan: {
  -                          interactive: true
  -                        }*/
  -                      });
  -
  -
  +                       result = tmp;
  +                        var options = {
  +                                legend: { show:false },
  +                                series: {
  +                                stack:1,
  +                                lines: { show: true, fill:enablePlane},                                         
  +                                        //bars:{show: false},
  +                                        points: { show: true }
  +                                        },
  +                                 grid:{hoverable:true,clickable:true},
  +                                 xaxis: { mode:"time"},
  +                                 yaxis: { min:null,tickFormatter:function(m,n){return(m/1000)+"k LOC"}},
  +                                 selection: { mode: "x" }
  +                                 };                     
  +
  +
  +                                                                    placeholder.bind("plotselected", function (event, ranges) {
  +                                                                   // $("#selection").text(ranges.xaxis.from.toFixed(1) + " to " + ranges.xaxis.to.toFixed(1));
  +                                                                      
  +                                                                    var zoom = $("#zoom").attr("checked");
  +                                                                    if (zoom)
  +                                                                        //plot= $.plot(placeholder, e,
  +                                                                        $.plot(placeholder, result,
  +                                                                              $.extend(true, {}, options, {
  +                                                                                  xaxis: { min: ranges.xaxis.from, max: ranges.xaxis.to }
  +                                                                              }));
  +                                                                    }); 
  +
  +                      $.plot(placeholder, result, options);
  +
  +                                                                
  +                       $("#whole").click(function () {
  +                              $.plot(placeholder,result, options);
  +                              }); 
  +                                                                
  +                       placeholder.bind("plotunselected", function (event) {
  +                              $("#selection").text("");
  +                              });
  +                                                                    
                         function showTooltip(x, y, contents) {
                           $('<div id="<portlet:namespace />tooltip">' + contents + '</div>').css( {
                             position: 'absolute',
  
positive.code:                       tmp   = [],
                        enablePlane = <%= type.equals("taskstatus") ? "true" : "false"%>;
                    
                    
                        $(result).each(function()
                        {
                          if (enablePlane)
  
negative.code:                         }
  										
                        });
                       
                      }
                    });
  
  