Collection #1651
Updated by liaham almost 2 years ago
🐛 Thanks for taking the time to fill out this bug report! 😊
## What did you expect?
Rendering charts with integer values (number of issues, month, ...) should display an integer scale on the y-axis.
## What has happened instead?
The y-axis shows fractional numbers.
## What could be a possible solution?
Modify the configuration of chart.js:
```js
scales: {
yAxis: {stacked: true},
- xAxis: {stacked: true}
+ xAxis: {stacked: true, ticks: {precision: 0}}
}
```
See also https://www.redmine.org/issues/38359.
## How can we reproduce the problem?
Render a chart in the report section of a project with issues enabled.
## In what environment are you running the plugin?
Please copy and paste your environment information as displayed in Administration » Information or run `bin/about` in the root dir of your Redmine instance.
## What browsers are you seeing the problem on?
* [x] Firefox
* [ ] Chrome
* [ ] Safari
## Relevant log output
``` shell
# Copy your log output (log/production.log) here
not necessary
```