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.
coloring fastline series
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi TeeUser,
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.
Yes, you should use area series.
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.
You can use series GetPointerStyle event and something like this: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.
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 |
Instructions - How to post in this forum |