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 6125839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:17:41+00:00 2026-05-23T16:17:41+00:00

Afternoon all, So I have a application which uses a zedGraphControl to graph out

  • 0

Afternoon all,

So I have a application which uses a zedGraphControl to graph out some data that the application collections but I am running into a issue with the y axis max value. Here is what is happening.

I have made it so the graph can be switched between a single y axis graph and a dual y axis graph. When doing the dual y axis graph I set mypane.yaxis.max = 100 since the values on the yaxis will never go above 100 but i don’t set it for y2axis (since these values range widely). The problem comes in when I switch from having it be a dual y axis graph to a single yaxis. When I disable y2axis and add my curves to yaxis the yaxis.max is still set at 100 from when it was a dual yaxis. How can I set yaxis.max back to the default so it auto scales to whatever the max value is (like how it is if you don’t mess with yaxis.max).

hope this makes sense.

  • 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-23T16:17:41+00:00Added an answer on May 23, 2026 at 4:17 pm

    I think you are referring to the axis scale property?

    Try the following:

    zedGraphControl.GraphPane.YAxis.Scale.MaxAuto = true;
    

    Don’t forget to call AxisChange() to cause ZedGraph to recalculate the auto scale:

    zedGraphControl.AxisChange();
    

    Finally depending on how you are redrawing the graph, you might need:

    zedGraphControl.GraphPane.Invalidate();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good afternoon all. I have a page that displays data in a gridview based
Afternoon All I have some data - var searchwithin = [ {id:clearwithin, type:button}, {id:search_radius,
Afternoon All, I have a dropdown list which extracts data from my SQL database
Good afternoon all, I have a Java applet that I wish to embed on
Good afternoon all, I have a class which looks like this: public class Grapheme
Good Afternoon All, I have a wizard control that contains 20 textboxes for part
Good afternoon all, I'm using a java.lang.StringBuilder to store some characters. I have no
Good Afternoon All, I have written an SSIS 2005 package that contains a conditional
Very good afternoon to all, The problem I have now is that I can
This seems to have happened at some point this afternoon. First of all, my

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.