Page 1 of 1

Change Style....

Posted: Mon Sep 12, 2005 1:53 pm
by 9637269
Hi,
could anyone please tell me how can I change a style of one graph series on the run time.

For examle, I would like to swith from the pie type to the line (or bar) type and viceversa by the code. I'm using C#.
Thanks a lot.
Andrea Stella.

Posted: Mon Sep 12, 2005 2:59 pm
by narcis
Hi Andrea,

Yes, you can do it using:

Code: Select all

		private void button1_Click(object sender, System.EventArgs e)
		{
			Steema.TeeChart.Styles.Series s=tChart1[0];			
			Steema.TeeChart.Styles.Series.ChangeType(ref s,typeof(Steema.TeeChart.Styles.Bar));    
		}