Kaydet (Commit) 0cf3d6c6 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Fridrich Štrba

switch the direction of the series labels

Change-Id: I718ee4782a8b1e265131f6e4e02093a59c17cb15
üst 021f7748
......@@ -146,12 +146,12 @@ void GL3DBarChart::create3DShapes(const boost::ptr_vector<VDataSeries>& rDataSer
*mpTextCache, aSeriesName, nId++));
opengl3D::Text* p = static_cast<opengl3D::Text*>(&maShapes.back());
glm::vec3 aTopLeft, aTopRight, aBottomRight;
aTopLeft.x = -nBarDistanceY;
aTopLeft.y = nYPos + 0.25 * nBarSizeY;
aTopRight.x = calculateTextWidth(aSeriesName) * -1.0 - nBarDistanceY;
aTopRight.x = -nBarDistanceY;
aTopRight.y = nYPos + 0.25 * nBarSizeY;
aTopLeft.x = calculateTextWidth(aSeriesName) * -1.0 - nBarDistanceY;
aTopLeft.y = nYPos + 0.25 * nBarSizeY;
aBottomRight = aTopRight;
aBottomRight.y += TEXT_HEIGHT;
aBottomRight.y -= TEXT_HEIGHT;
p->setPosition(aTopLeft, aTopRight, aBottomRight);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment