Commit 1b36ab8c 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
parent c3d58abe
Pipeline #143504 passed with stage
in 2 minutes and 21 seconds
...@@ -31,7 +31,7 @@ Charts.BarChart { ...@@ -31,7 +31,7 @@ Charts.BarChart {
stacked: controller.faceConfiguration.barChartStacked 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 * readonly property real rangeFromY: controller.faceConfiguration.rangeFrom *
controller.faceConfiguration.rangeFromMultiplier controller.faceConfiguration.rangeFromMultiplier
......
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