Page 1 of 1

ArrowLength

Posted: Wed Feb 04, 2009 3:01 pm
by 13049011
I've got a bar chart where I want the marks to be right above (for positive values) and right below (for negative values) the column. I have a series with 10 values, but two of the marks are showing up on top of the columns. I have set ArrowLength and Distance both to 0. Any ideas?

series.Marks.ArrowLength = 0;
series.Marks.Callout.Distance = 0;


Thanks,
Nick

Posted: Wed Feb 04, 2009 3:20 pm
by 13049011
I ended up reducing the font size and it seems to be working now.

Posted: Wed Feb 04, 2009 3:23 pm
by yeray
Hi Nick,

I've tested the following code with the latest version available at the web and it seems to work as expected. Could you please check if you have the latest TeeChart version and try it?

Code: Select all

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private Steema.TeeChart.Styles.Bar bar1;

        private void Form1_Load(object sender, EventArgs e)
        {
            tChart1.Aspect.View3D = false;

            bar1 = new Steema.TeeChart.Styles.Bar(tChart1.Chart);

            Random y = new Random();
            for (int i = 0; i < 5; i++)
            {
                bar1.Add(y.Next());
                bar1.Add(-y.Next());
            }

            bar1.Marks.ArrowLength = 0;
        }
If this works fine for you, we are probably skipping any essential step to reproduce the problem so, if you still have problems, please, send us a simple example project we can run "as-is" to reproduce the problem here.

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Posted: Wed Feb 04, 2009 3:28 pm
by yeray
Hi Nick,

I'm happy to see that you found the solution even before than I understood the problem!