ArrowLength

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Nick
Newbie
Newbie
Posts: 9
Joined: Wed May 14, 2008 12:00 am

ArrowLength

Post by Nick » Wed Feb 04, 2009 3:01 pm

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

Nick
Newbie
Newbie
Posts: 9
Joined: Wed May 14, 2008 12:00 am

Post by Nick » Wed Feb 04, 2009 3:20 pm

I ended up reducing the font size and it seems to be working now.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Wed Feb 04, 2009 3:23 pm

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Wed Feb 04, 2009 3:28 pm

Hi Nick,

I'm happy to see that you found the solution even before than I understood the problem!
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply