Profile Picture

does NAreaSeries border have to go all the way around the area, or can it just be on one side?

Posted By Keith Mason 12 Years Ago

does NAreaSeries border have to go all the way around the area, or can...

Author
Message
Keith Mason
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 3, Visits: 1
I'm looking to create a chart with both an area as well as a line that tops it. BorderStyle draws a line all of the way around the area, but I don't want the line to go all of the way around, I only want it on top of the area. The effect I'm looking for would be if there was an NLineSeries with the same data as the NAreaSeries.

The problems with using two series are that 1) it colors the line differently than the area, and 2) it adds extra legend entries.

Does BorderStyle have an ability to border only on one side? Or is there another way to go about this?

Thanks.

Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi,

At this point the area border is either displayed around the whole area or is not displayed at all. There is no way to make it show only at the top side of the area.

The option to use a line series is still quite possible. The problems that you pointed out can be solved with a few settings:

1) it colors the line differently than the area
You can change the border of the line series through the BorderStyle property of the series. It is also possible to change the color of each line segment individually if this is required.

lineSeries.BorderStyle.Color = Color.Red;

2) it adds extra legend entries.
you can disable the series legend item with the following code:

lineSeries.Legend.Mode = SeriesLegendMode.None;



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic