I am using TeeChart v7 to produce bar charts from live data with percent style marks. I noticed right away that my percentage values were off. On close examination, the first item value was erroneously being counted twice (instead of only once). If the first item value was the only non-zero value in the series, then the chart displayed 50% (wrong) instead of the 100% (correct).
Since I have the source code and needed the routines to work right away, I went in and located the bug and fixed it. In TeEngine's TChartValueList.RecalcStats procedure (around line 4994), the two lines:
- FTotal:=tmpValue;
FTotalABS:=Abs(tmpValue);
- FTotal:=0;
FTotalABS:=0;
For those users without source, one workaround would be to avoid using the first series value, leaving it at 0.
Please double-check my conclusion, and if this post represents a new bug fix, please incorporate it into future releases.
Thank you,
Harry (HT)