Area series opacity, graph report, winforms

3 posts, 1 answers
  1. Czeshirecat
    Czeshirecat avatar
    60 posts
    Member since:
    Jun 2016

    Posted 19 Feb Link to this post

    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. Answer
    Neli
    Admin
    Neli avatar
    85 posts

    Posted 19 Feb Link to this post

    Hi Czeshirecat,

    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
  3. Czeshirecat
    Czeshirecat avatar
    60 posts
    Member since:
    Jun 2016

    Posted 20 Feb in reply to Neli Link to this post

    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.

Back to Top