Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7606843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:30:38+00:00 2026-05-31T00:30:38+00:00

I have a Chart control with some columns and GridLines. I wanted to add

  • 0

I have a Chart control with some columns and GridLines. I wanted to add a red StripLine at a specific location on the Chart to show that this is the acceptable level (or whatever).

The problem is that the stripline is not showing because the gridlines are hiding it! the strip line is just 1 point width as so as the gridlines.

Is there a way that I can draw the strip line OVER the gridlines and not under it?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T00:30:40+00:00Added an answer on May 31, 2026 at 12:30 am

    Add follwing code to view strip line at 5 and 9.5 positions in y axis. I am sure it will work

        // Instantiate new strip line
        StripLine stripLine1 = new StripLine();
        stripLine1.StripWidth = 0;
        stripLine1.BorderColor = System.Drawing.Color.RoyalBlue;
        stripLine1.BorderWidth = 3;
        stripLine1.Interval = 5;
    
        // Consider adding transparency so that the strip lines are lighter
        stripLine1.BackColor = System.Drawing.Color.RosyBrown;
    
        stripLine1.BackSecondaryColor = System.Drawing.Color.Purple;
        stripLine1.BackGradientStyle = GradientStyle.LeftRight;
    
        // Add the strip line to the chart
        Chartname.ChartAreas[0].AxisY.StripLines.Add(stripLine1);
    
        StripLine stripLine2 = new StripLine();
        stripLine2.StripWidth = 0;
        stripLine2.BorderColor = System.Drawing.Color.RoyalBlue;
        stripLine2.BorderWidth = 3;
        stripLine2.Interval = 9.5;
    
        // Consider adding transparency so that the strip lines are lighter
        stripLine2.BackColor = System.Drawing.Color.RosyBrown;
    
        stripLine2.BackSecondaryColor = System.Drawing.Color.Purple;
        stripLine2.BackGradientStyle = GradientStyle.LeftRight;
    
        // Add the strip line to the chart
        Chartname.ChartAreas[0].AxisY.StripLines.Add(stripLine2);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a chart control that is displaying columns with values on top (series
I am using the new ASP control Chart, but I have some problems with
I'm using Microsoft's Chart control to plot some series, but if I have no
I have a .Net 4 Chart Control bound to stored proc. For some customer
So I've made this range bar chart with the MS Chart Control. I have
I have installed the new asp:chart control on my machine and have built an
So, I have a WindowsFormsHost control in my WPF app (hosting a Dundas Chart)
I have a chart with a series that denotes a large set (1000's) of
I have a chart (in bitmap format) that I'm trying to render to a
I have a line chart that is updated every so and so seconds, similar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.