Skip to content

Commit

Permalink
Use logarithmic scale for build result summary chart
Browse files Browse the repository at this point in the history
Currently the click target is really small on the bars in the chart
when there is a big margin between the values of the individual results
(e.g. 100 Succeding Builds and 1 Failed Build).
Using a logarithmic scale on the y-axis balances the difference
on the bars in the chart.

In order to stay consistent with the ordering of the individual
build results types and to distinguish the click target a little
more I disabled stacking of the bars.
  • Loading branch information
krauselukas committed Mar 25, 2024
1 parent 7319309 commit 5ee72d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/app/components/chart_component.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
id: 'build-summary-chart',
width: '100%',
height: '300px',
stacked: true,
stacked: false,
responsive: true,
colors: ['#008000', '#DC3545', '#FFCC00', '#EEEEEE'],
library: { scales: { y: { ticks: { stepSize: 1 }}}},
library: { scales: { y: { ticks: { stepSize: 1 }, type: 'logarithmic' }}},
)
:javascript
linkBuildSummaryChartToBuildResultsTab();
Expand Down

0 comments on commit 5ee72d8

Please sign in to comment.