##// 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 if (barSet->value(category) == 0) {
228 if (barSet->value(category) == 0) {
229 label->setVisible(false);
229 label->setVisible(false);
230 } else {
230 } else {
231 label->setVisible(true);
231 label->setVisible(m_series->isLabelsVisible());
232 if (m_series->labelsFormat().isEmpty()) {
232 if (m_series->labelsFormat().isEmpty()) {
233 valueLabel = presenter()->numberToString(barSet->value(category));
233 valueLabel = presenter()->numberToString(barSet->value(category));
234 } else {
234 } else {
@@ -119,7 +119,7 void HorizontalPercentBarChartItem::handleUpdatedBars()
119 if (p == 0) {
119 if (p == 0) {
120 label->setVisible(false);
120 label->setVisible(false);
121 } else {
121 } else {
122 label->setVisible(true);
122 label->setVisible(m_series->isLabelsVisible());
123 if (m_series->labelsFormat().isEmpty()) {
123 if (m_series->labelsFormat().isEmpty()) {
124 vString.append(QStringLiteral("%"));
124 vString.append(QStringLiteral("%"));
125 valueLabel = vString;
125 valueLabel = vString;
@@ -124,7 +124,7 void PercentBarChartItem::handleUpdatedBars()
124 if (p == 0) {
124 if (p == 0) {
125 label->setVisible(false);
125 label->setVisible(false);
126 } else {
126 } else {
127 label->setVisible(true);
127 label->setVisible(m_series->isLabelsVisible());
128 if (m_series->labelsFormat().isEmpty()) {
128 if (m_series->labelsFormat().isEmpty()) {
129 vString.append(QStringLiteral("%"));
129 vString.append(QStringLiteral("%"));
130 valueLabel = vString;
130 valueLabel = vString;
General Comments 0
You need to be logged in to leave comments. Login now