Actions
Bug #1653
closedxmera Omnia - Collection #1651: Render numeric axes in charts as Integers
Render numeric axes in charts as Integers
Start date:
Due date:
% Done:
100%
Estimated time:
Affected Version:
Compatible Redmine Version:
Pull Request Link:
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 over 1 year ago
- Target version changed from unreleased to 2.0.1
Updated by liaham over 1 year ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Updated by liaham over 1 year ago
- Related to Bug #1628: Chart.js: Invalid scale configuration for scale: yAxes added
Actions