aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/graphs/BarGraph.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphs/BarGraph.qml b/src/graphs/BarGraph.qml
index 3f40130..fd5e947 100644
--- a/src/graphs/BarGraph.qml
+++ b/src/graphs/BarGraph.qml
@@ -62,7 +62,7 @@ Item {
Repeater {
id: barsRepeater
delegate: Item { //this contains the graph column and positions it correctly
- width: (barGraph.width-markerParent.width)/barGraph.valuesArr.length
+ width: (barGraph.width-markerParent.width)/Math.max(barGraph.valuesArr.length,3)
height: parent.height
Rectangle {
id: bar