##// END OF EJS Templates
Fix bar series label visibility...
Titta Heikkala -
r2816:f5a7ef4ddac0
parent child
Show More
@@ -228,7 +228,7 void AbstractBarChartItem::handleUpdatedBars()
228 228 if (barSet->value(category) == 0) {
229 229 label->setVisible(false);
230 230 } else {
231 label->setVisible(true);
231 label->setVisible(m_series->isLabelsVisible());
232 232 if (m_series->labelsFormat().isEmpty()) {
233 233 valueLabel = presenter()->numberToString(barSet->value(category));
234 234 } else {
@@ -119,7 +119,7 void HorizontalPercentBarChartItem::handleUpdatedBars()
119 119 if (p == 0) {
120 120 label->setVisible(false);
121 121 } else {
122 label->setVisible(true);
122 label->setVisible(m_series->isLabelsVisible());
123 123 if (m_series->labelsFormat().isEmpty()) {
124 124 vString.append(QStringLiteral("%"));
125 125 valueLabel = vString;
@@ -124,7 +124,7 void PercentBarChartItem::handleUpdatedBars()
124 124 if (p == 0) {
125 125 label->setVisible(false);
126 126 } else {
127 label->setVisible(true);
127 label->setVisible(m_series->isLabelsVisible());
128 128 if (m_series->labelsFormat().isEmpty()) {
129 129 vString.append(QStringLiteral("%"));
130 130 valueLabel = vString;
General Comments 0
You need to be logged in to leave comments. Login now