summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-12-07 19:48:50 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-12-08 00:12:53 -0500
commit263861b0f6a3ea4581d966b42a10fae65a21c2fc (patch)
tree09c9407a60dbdc3621f08c3b3a0bd0509eeafc56 /chart2
parentbe9e8f6ee4a233b28cbe45cc3c3c01a4d9b9d8d7 (diff)
bnc#791952: Better placement of 3D pie chart data labels.
This value appears to control the logical vertical offset of data labels along the z-axis for 3D pie charts (no effect in 2D pie charts). With -0.5, the data labels appear lifted from the top surface of the pie chart. With -1.0, the labels get placed right at the top surface, which improves the precision of data label positions. With this change, data labels that are centered are really centered inside their respective pie segments. Change-Id: I26d5d7cb7f68bd09131b70bcb4fc030ac924bcce
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/charttypes/PieChart.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/view/charttypes/PieChart.cxx b/chart2/source/view/charttypes/PieChart.cxx
index 5e7e1676267c..8d558f110fe7 100644
--- a/chart2/source/view/charttypes/PieChart.cxx
+++ b/chart2/source/view/charttypes/PieChart.cxx
@@ -442,7 +442,7 @@ void PieChart::createShapes()
}
//create data point
- double fLogicZ = -0.5;//as defined
+ double fLogicZ = -1.0; // For 3D pie chart label position
uno::Reference<drawing::XShape> xPointShape(
createDataPoint( xSeriesGroupShape_Shapes, xPointProperties
, fUnitCircleStartAngleDegree, fUnitCircleWidthAngleDegree