[Rt-commit] rt branch, 4.6/jschart, repushed

? sunnavy sunnavy at bestpractical.com
Wed May 1 00:56:32 EDT 2019


The branch 4.6/jschart was deleted and repushed:
       was 84e043d5e2b22d102e8218371a9fb58de8cfc72d
       now fa5a8736f1dc0d938378a4001d923e8e1b6f972e

1: 48bc3f717 = 1: 48bc3f717 Add Chart.js 2.8.0 dependency
2: 92ad446dd = 2: 92ad446dd Add chartjs-plugin-colorschemes.min.js 0.03 dependency
3: 01e0c7ae1 ! 3: 22e92bdf5 Initial js chart support
    @@ -181,7 +181,7 @@
     +        datasets: [
     +% for my $index ( 1 .. $#data ) {
     +          {
    -+            label: <% JSON($labels[$index-1]) |n %>,
    ++            label: <% $labels[$index-1] |n,j %>,
     +            data: <% JSON($data[$index]) |n %>
     +          }
     +%   if ( $index != $#data ) {
    @@ -204,7 +204,7 @@
     +            xAxes: [{
     +                scaleLabel: {
     +                    display: true,
    -+                    labelString: <% JSON( join( ' - ', map $report->Label( $_ ), @{ $columns{'Groups'} } ) ) |n %>
    ++                    labelString: <% join(' - ', map $report->Label( $_), @{ $columns{'Groups'} }) |n,j %>
     +                },
     +                gridLines: {
     +                    display: false
    @@ -213,7 +213,7 @@
     +            yAxes: [{
     +                scaleLabel: {
     +                    display: true,
    -+                    labelString: <% JSON( $report->Label( $columns{'Functions'}[0] ) ) |n %>
    ++                    labelString: <% $report->Label( $columns{'Functions'}[0] ) |n,j %>
     +                },
     +                gridLines: {
     +                    drawTicks: true,
4: 84e043d5e ! 4: fa5a8736f Use different colors for bars if the chart only contains a single dataset
    @@ -9,7 +9,7 @@
     +++ b/share/html/Search/JSChart
     @@
                {
    -             label: <% JSON($labels[$index-1]) |n %>,
    +             label: <% $labels[$index-1] |n,j %>,
                  data: <% JSON($data[$index]) |n %>
     +%   if ( $#data == 1 )  {
     +            , backgroundColor: Chart.colorschemes[<% $scheme_parts[0] |n,j %>][<% $scheme_parts[1] |n,j %>]



More information about the rt-commit mailing list