State chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
jarp
Newbie
Newbie
Posts: 17
Joined: Thu Apr 09, 2009 12:00 am

State chart

Post by jarp » Mon Aug 03, 2009 8:20 am

Hi,

I would like to create chart with states. Now I've solved the problem by using line series like at the picture A),
but I would like to get something like at the picture B). Is there any series that give such a possiblity ?

[img]states.JPG[/img]
Attachments
states.JPG
states.JPG (28.32 KiB) Viewed 3439 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: State chart

Post by Yeray » Mon Aug 03, 2009 2:28 pm

Hi jarp,

I think that the series you are looking for is the Area series:

Code: Select all

            Area area1 = new Area(tChart1.Chart);
            area1.Color = line1.Color;
            area1.LinePen.Color = area1.Color;
            area1.DataSource = line1;
            area1.UseOrigin = true;
            area1.Origin = 0;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

jarp
Newbie
Newbie
Posts: 17
Joined: Thu Apr 09, 2009 12:00 am

Re: State chart

Post by jarp » Tue Aug 04, 2009 6:52 am

Thanks a lot. Your solution works.

Post Reply