Page 1 of 1

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

Posted: Thu Mar 23, 2006 12:39 am
by 9637279
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

Posted: Thu Mar 23, 2006 9:38 am
by narcis
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();
      }
    }