View Revisions: Issue #34861

Summary 0034861: Incorrect placement of series labels for stacked series in case of non-linear axis transformations
Revision 2019-01-13 13:08 by wp
Additional Information TCustomSeries.DrawLabels contains code which is wrong in case of non-linear axis transformations:

In the following excerpt g is a graphpoint corresponding to the end of a bar, y is the data value of a stack level:
  g.Y += AxisToGraphY(y);

This is wrong, the axis transformation must be applied to sum of the the axis coordinates:

  ysum += y;
  g.Y := AxisToGraphY(ysum);
Revision 2019-01-13 10:42 by wp
Additional Information