Commit 309e7aa8 authored by John Fano's avatar John Fano Committed by Nate Graham
Browse files

Fixed computational bug for bar chart spacing

The current calculation method for the bar chart spacing
would always result in a spacing size of zero (0).  This fix
implements a fixed size bar spacing scaling with the font size.
It allows the chart to scale well at any resolution, DPI and
font size as well as with any number of items charted.

BUG: 449868
FIXED-IN: 5.24.3

(cherry picked from commit 1b36ab8c)
parent 5b2a57aa
Pipeline #143506 passed with stage
in 4 minutes and 6 seconds
......@@ -31,7 +31,7 @@ Charts.BarChart {
stacked: controller.faceConfiguration.barChartStacked
spacing: Math.floor((width / barCount) * 0.05)
spacing: Math.floor(Kirigami.Units.smallSpacing / 2)
readonly property real rangeFromY: controller.faceConfiguration.rangeFrom *
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment