Page 1 of 1

State chart

Posted: Mon Aug 03, 2009 8:20 am
by 13052929
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]

Re: State chart

Posted: Mon Aug 03, 2009 2:28 pm
by yeray
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;

Re: State chart

Posted: Tue Aug 04, 2009 6:52 am
by 13052929
Thanks a lot. Your solution works.