Actions
Collection #1651
closedRender numeric axes in charts as Integers
Start date:
Due date:
% Done:
100%
Estimated time:
(Total: 0.00 h)
Compatible Redmine Version:
Description
๐ 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:
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?¶
- Firefox
- Chrome
- Safari
Relevant log output¶
# Copy your log output (log/production.log) here
not necessary
Updated by liaham almost 2 years ago
- Subject changed from https://www.redmine.org/issues/38359 to Render numeric axes in charts as Integers
- Description updated (diff)
Updated by liaham almost 2 years ago
- Tracker changed from Bug to Collection
- Affected Version deleted (
4.0.0)
Actions