coloring fastline series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
TeeUser
Newbie
Newbie
Posts: 14
Joined: Wed Jun 22, 2005 4:00 am
Contact:

coloring fastline series

Post by TeeUser » Fri Feb 24, 2006 6:10 pm

Hi,
I am using fastline series and I have 3 questions.
1. I want the label mark above and below the graph i.e, at the top and bottom of the left axis.
2. I want to color the inside of the fast line seires, I tried using gradient, fastline1.mark.gradient.visible=true and i tried stteing up the colors but it did not help. Is it possible to color the inside of the graph or do i have to go for area series instead???
3.I want to change the color of the series differently if the Y-Value is greater than a particular vaue and change the color again if the Y-value is less than a particular value.

I appreciate your help.
Thanks.

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

Post by Narcís » Mon Feb 27, 2006 11:54 am

Hi TeeUser,
1. I want the label mark above and below the graph i.e, at the top and bottom of the left axis.


We don't understand what are you exactly trying to obtain. Could you please post a detailed description or send us an image so that we can figure it out? You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
2. I want to color the inside of the fast line seires, I tried using gradient, fastline1.mark.gradient.visible=true and i tried stteing up the colors but it did not help. Is it possible to color the inside of the graph or do i have to go for area series instead???


Yes, you should use area series.
3.I want to change the color of the series differently if the Y-Value is greater than a particular vaue and change the color again if the Y-value is less than a particular value.
You can use series GetPointerStyle event and something like this:

Code: Select all

		private void line1_GetPointerStyle(Steema.TeeChart.Styles.CustomPoint series, Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventArgs e)
		{
			if (series.YValues[e.ValueIndex]>100)
				series.Pointer.Color=Color.Red;
			else
				series.Pointer.Color=Color.Blue;
		}

		private void Form1_Load(object sender, System.EventArgs e)
		{
			line1.FillSampleValues();
			line1.Pointer.Visible=true;
		}
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