##// END OF EJS Templates
floating value layout fix for barchart
sauimone -
r474:93c2b5b16561
parent child
Show More
@@ -74,7 +74,7 void PercentBarPresenter::layoutChanged()
74
74
75 // Position floating values
75 // Position floating values
76 itemIndex = 0;
76 itemIndex = 0;
77 xPos = ((tW/tC) - mBarWidth / 2);
77 xPos = (tW/tC);
78 for (int category=0; category < mSeries->categoryCount(); category++) {
78 for (int category=0; category < mSeries->categoryCount(); category++) {
79 qreal yPos = h;
79 qreal yPos = h;
80 qreal colSum = mSeries->categorySum(category);
80 qreal colSum = mSeries->categorySum(category);
@@ -83,7 +83,7 void StackedBarPresenter::layoutChanged()
83
83
84 // Position floating values
84 // Position floating values
85 itemIndex = 0;
85 itemIndex = 0;
86 xPos = ((tW/tC) - mBarWidth / 2);
86 xPos = (tW/tC);
87 for (int category=0; category < mSeries->categoryCount(); category++) {
87 for (int category=0; category < mSeries->categoryCount(); category++) {
88 qreal yPos = h;
88 qreal yPos = h;
89 for (int set=0; set < mSeries->barsetCount(); set++) {
89 for (int set=0; set < mSeries->barsetCount(); set++) {
General Comments 0
You need to be logged in to leave comments. Login now