@@ -116,7 +116,7 QVector<QRectF> BarChartItem::calculateLayout() | |||
|
116 | 116 | qreal scaleY = (height / rangeY); |
|
117 | 117 | qreal scaleX = (width / rangeX); |
|
118 | 118 | qreal categoryWidth = width / categoryCount; |
|
119 | qreal barWidth = categoryWidth - categoryWidth * m_series->d_func()->barMargin(); | |
|
119 | qreal barWidth = categoryWidth / setCount - categoryWidth * m_series->d_func()->barMargin(); | |
|
120 | 120 | |
|
121 | 121 | int itemIndex(0); |
|
122 | 122 | for (int category = 0; category < categoryCount; category++) { |
General Comments 0
You need to be logged in to leave comments.
Login now