diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-05-28 19:29:54 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-05-28 19:31:46 +0200 |
commit | 5695cdfdc0ab372181ff9ad63db08320fb4e70c9 (patch) | |
tree | 724f3c57bf57a03f359c602c36d7febc5d1d74ea /chart2 | |
parent | a8b7fcf34914df128e9664bbd70dc269c7cf32cb (diff) |
change the bar direction for the demo
Change-Id: I24e45810cb154310d8e35982e2ef100cf5746e2b
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); |