This is a migrated thread and some comments may be shown as answers.

Area series opacity, graph report, winforms

2 Answers 222 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Czeshirecat
Top achievements
Rank 2
Iron
Iron
Czeshirecat asked on 19 Feb 2019, 11:46 AM

Hi.

The attached image is from winforms report project.

The line series represents a person's weight over time. The stacked area chart in the background represents BMI levels (below, normal, above, obese)

How do I make the stacked area opaque so that the grid lines can be seen. At the moment it's obscuring them.

Many thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Neli
Telerik team
answered on 19 Feb 2019, 05:10 PM
Hi ,

When you add the colors in the Color Palette collection, you also need to set the Transparency - check the How do I make colors display with partial transparency? article. For example, if you have (255,0,0) which is red, adding 50 in front of the color (50,255,0,0) will make the red color transparent on 50%. Any other color can be set this way to make it transparent.

In the attached file there is a report which demonstrates the solution.

Regards,
Neli
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Czeshirecat
Top achievements
Rank 2
Iron
Iron
answered on 20 Feb 2019, 08:42 AM

Thank you.

I'm posting this response for other newby graph users who are using the Visual Studio designer rather than the telerik report designer.

My problem was seen because I was using the AreaStyle properties in an attempt to set the colors rather than the ColourPalette.After setting ColorPalette, I needed to delete the area style color properties in the .designer file.

Tags
General Discussions
Asked by
Czeshirecat
Top achievements
Rank 2
Iron
Iron
Answers by
Neli
Telerik team
Czeshirecat
Top achievements
Rank 2
Iron
Iron
Share this question
or