Project

General

Profile

Patch #38359 » 0001-Render-numeric-axis-in-charts-as-integers.patch

Holger Just, 2023-03-15 14:42

View differences:

app/views/reports/_details.html.erb
72 72
        },
73 73
        scales: {
74 74
          yAxis: {stacked: true},
75
          xAxis: {stacked: true}
75
          xAxis: {stacked: true, ticks: {precision: 0}}
76 76
        }
77 77
      }
78 78
    });
app/views/repositories/stats.html.erb
45 45
            display: true,
46 46
            text: <%= raw l(:label_commits_per_month).to_json %>
47 47
          }
48
        },
49
        scales: {
50
          yAxis: {ticks: {precision: 0}}
48 51
        }
49 52
      }
50 53
    });
......
86 89
            display: true,
87 90
            text: <%= raw l(:label_commits_per_author).to_json %>
88 91
          }
92
        },
93
        scales: {
94
          xAxis: {ticks: {precision: 0}}
89 95
        }
90 96
      }
91 97
    });
(3-3/3)