diff options
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/charttypes/GL3DBarChart.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/view/charttypes/GL3DBarChart.cxx b/chart2/source/view/charttypes/GL3DBarChart.cxx index b129b9f07786..711072cdf5f4 100644 --- a/chart2/source/view/charttypes/GL3DBarChart.cxx +++ b/chart2/source/view/charttypes/GL3DBarChart.cxx @@ -103,8 +103,8 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer // guarantee they are positioned correctly. In fact, they are guaranteed // to be positioned incorrectly. - const float nBarSizeX = 5.0f; - const float nBarSizeY = 30.0f; + const float nBarSizeX = 30.0f; + const float nBarSizeY = 5.0f; const float nBarDistanceX = 5.0f; const float nBarDistanceY = 5.0; @@ -153,9 +153,9 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer opengl3D::Text* p = static_cast<opengl3D::Text*>(&maShapes.back()); glm::vec3 aTopLeft, aTopRight, aBottomRight; aTopRight.x = -nBarDistanceY; - aTopRight.y = nYPos + 0.25 * nBarSizeY; + aTopRight.y = nYPos + nBarDistanceY; aTopLeft.x = calculateTextWidth(aSeriesName) * -1.0 - nBarDistanceY; - aTopLeft.y = nYPos + 0.25 * nBarSizeY; + aTopLeft.y = nYPos + nBarDistanceY; aBottomRight = aTopRight; aBottomRight.y -= TEXT_HEIGHT; p->setPosition(aTopLeft, aTopRight, aBottomRight); |