Page 1 of 1

colorgrid + centeredpoints : displaying small data

Posted: Fri Apr 25, 2008 5:06 pm
by 14048505
Hi Narcis,

I just found something strange, when using the centeredpoints property with a colorgrid.

I noticed that you always subtract 0.5 from the given value, to simulate the centeredpoints property. This, however, gives a wrong effect when the values are small, and close to each other.

This is easily seen when you add values to such a colorgrid with values like 2.1, 2.2, 2.3, etc. This will result in a chart which has its values at 1.6 (2.1 - 0.5), 1.7, 1.8, etc. This makes that the chart we get does not represent that data we have entered.

Do you think that next maintenance release, due somewhere in may, will contain a solution for this?


kind regards,

yves

Posted: Mon Apr 28, 2008 7:41 am
by narcis
Hi yves,

I've added this issue (TF02013011) to the defect list to be reviewed for next releases.

Anyway, series data is correct, the only problem may be with axes labels but a workaround could be implementing GetAxisLabel event like this:

Code: Select all

		void tChart1_GetAxisLabel(object sender, Steema.TeeChart.GetAxisLabelEventArgs e)
		{
			double tmp = Convert.ToDouble(e.LabelText);
			e.LabelText = (tmp + 0.5).ToString();
		}