[Rt-commit] rt branch, 4.4/stacked-bar-chart, repushed

? sunnavy sunnavy at bestpractical.com
Sat Feb 3 13:51:37 EST 2018


The branch 4.4/stacked-bar-chart was deleted and repushed:
       was b7db362fcc37049ed4b608a1a02ce71cdb89843d
       now d7386abb95803eb8e7d0ac7df0f813e33eba05e8

1: 1c6400626 ! 1: 7b87228f2 basic stacked bar chart support
    @@ -125,7 +125,7 @@
          Query => $query{Query},
          Default => $query{'GroupBy'}[1] // q{},
          ShowEmpty => 1,
    -+    Stacked => $query{'GroupBy'}[1] && ($query{'GroupBy'}[1] eq $query{StackedGroupBy} // '') ? 1 : 0,
    ++    Stacked => $query{'GroupBy'}[1] && ($query{'GroupBy'}[1] eq ($query{StackedGroupBy} // '')) ? 1 : 0,
          &>
      </fieldset>
      <fieldset><legend><% loc('and then') %></legend>
    @@ -133,7 +133,7 @@
          Query => $query{Query},
          Default => $query{'GroupBy'}[2] // q{},
          ShowEmpty => 1,
    -+    Stacked => $query{'GroupBy'}[2] && ($query{'GroupBy'}[2] eq ($query{StackedGroupBy}) // '') ? 1 : 0,
    ++    Stacked => $query{'GroupBy'}[2] && ($query{'GroupBy'}[2] eq ($query{StackedGroupBy} // '')) ? 1 : 0,
          &>
      </fieldset>
      </&>
    @@ -163,7 +163,16 @@
     +});
     +
     +jQuery("select[name=GroupBy]").change( function() {
    -+    jQuery(this).closest('fieldset').find('input.stacked-group-checkbox').val(jQuery(this).val());
    ++    // "GroupBy-Groups" could be triggered because the they are fully cloned from "GroupBy"
    ++    if ( jQuery(this).attr('name') == 'GroupBy-Groups' ) {
    ++        var elem = jQuery(this).next('select[name=GroupBy]');
    ++        setTimeout( function () {
    ++            elem.change();
    ++        }, 100 ); // give it a moment to prepare "GroupBy" options
    ++    }
    ++    else {
    ++        jQuery(this).closest('fieldset').find('input.stacked-group-checkbox').val(jQuery(this).val());
    ++    }
     +});
     +
     +jQuery("select[name=ChartFunction]:first").change( function() {
    @@ -205,7 +214,7 @@
      </select>
     +
     +<span class="stacked-group">
    -+     <% loc('Stacked?') %> <input name="Stacked<% $Name %>" type="checkbox" class="stacked-group-checkbox" value="<% $Default %>" <% $Stacked ? 'checked="checked"' : '' |n %>/>
    ++     <% loc('Stacked?') %> <input name="Stacked<% $Name %>" type="checkbox" class="stacked-group-checkbox" <% $Stacked ? 'checked="checked"' : '' |n %>/>
     +</span>
     +
      <%init>
2: 955f950a2 = 2: 642cae885 increase chart width/height for better stacked bars rendering
3: 5ae593a4c ! 3: d7386abb9 silence "isn't numeric" warnings in GD::Graph for stacked bar charts
    @@ -34,4 +34,3 @@
      }
      
      if (my $plot = eval { $chart->plot( \@data ) }) {
    -
4: b7db362fc < -:  ------- Avoid uninitialzed value in eq warning



More information about the rt-commit mailing list