How to set different Line widths for fastlines on a chart?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
fano
Newbie
Newbie
Posts: 56
Joined: Wed Jun 22, 2005 4:00 am
Location: USA, California

How to set different Line widths for fastlines on a chart?

Post by fano » Thu Mar 23, 2006 12:39 am

Hi,
I have a chart with several 'FastLine' series.

I want to be able to set a different line width for each
series. They are 'fastlines'.

How can I do this?

Thanks,
fano

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Mar 23, 2006 9:38 am

Hi fano,

Yes, you can use fastline.LinePen.Width:

Code: Select all

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

      for (int i = 0; i < 5; ++i)
      {
        Steema.TeeChart.Styles.FastLine fl = new Steema.TeeChart.Styles.FastLine(tChart1.Chart);
        fl.LinePen.Width = i + 1;
        fl.FillSampleValues();
      }
    }
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply