Closed pseudobeard closed 6 years ago
<canvas class="js-win-loss-bar-chart chartjs-render-monitor" data-labels="["Jamie","Rob","Siege","Zion"]" data-wins="[4,5,5,7]" data-losses="[2,1,1,2]" data-draws="[1,1,1,1]" width="487" height="300" style="display: block; width: 487px; height: 300px;"></canvas>
Relevant source. Looks like because there are no elements with "0", the graph axis scales from min to max. Probably need to force the axis to start at 0 here.
Thanks for the report! I'm going to temporarily make your ATastySnack season 9 publicly visible so I can see the graph.
Here's the chart in question:
I deployed a fix. Turns out Chart.js, the charting library I'm using, has an option to force an axis scale to start at 0, so I used that. Here's the chart now:
Looks much better! Thanks!
When looking at https://competiwatch.herokuapp.com/trends/9/ATastySnack-1553, I noticed that the wins/losses by group member graph was off by one. It is showing each bar as 1 less than the actual value.