Page 1 of 1

coloring fastline series

Posted: Fri Feb 24, 2006 6:10 pm
by 9637357
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.

Posted: Mon Feb 27, 2006 11:54 am
by narcis
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;
		}