Page 1 of 1

Changing marks position after changing chart's height

Posted: Thu Sep 28, 2006 5:30 pm
by 9640767
Hello All,

Marks change their position after change bar chart's heigth (teechart 2.0.2306.26232):

1) add chart to winform
2) create bar serier in tChart1
3) add several values, some of them should be above zero and some of them below zero

4) As you can see marks for values below zero are located below bar.

5) Now, try to change chart's height, as you can see at some moment some of the mark's for negative values jump up, though there is enough space underneath

Any ideas how I can eliminate that behaviour?

Thanks.

Posted: Fri Sep 29, 2006 9:09 am
by narcis
Hello,

I'm not able to reproduce this here using the latest version available at the client area, which is Build 2.0.2456.16162, and the populating series like in the code snippet below.

Code: Select all

            bar1.Add(5);
            bar1.Add(7);
            bar1.Add(-2);
            bar1.Add(-3);
            bar1.Add(-10);
            bar1.Add(2);
            bar1.Add(8);
I added the -10 value so that -2 and -3 have plenty of room for their marks being under the bar. All marks only go up the bar when the chart's height is so small that all bars are almost flat (have no height).

Can you please test if latest version works fine for you? If it doesn't work could you please send us an example project we can run "as-is" or some code so that we can reproduce the problem here? You can post your files at news://www.steema.net/steema.public.attachments newsgroup.

Thanks in advance.