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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:23:38+00:00 2026-06-09T19:23:38+00:00

I have an asp.net chart control with different Series and i have reversed the

  • 0

I have an asp.net chart control with different Series and i have reversed the y-axis. Because of this i had to set Crossing AxisY to Maximum to have the xaxis on the bottom. Without setting the crossing value to maximum i have the xaxis on the top but i want it at the bottom.

The Problem is that the x-axis label are still on top and not at the bottom. Anyone has an idea how to reverse y-axis and have the normal x-axis labels at the bottom?

    Chart1.ChartAreas[0].AxisY.IsReversed = true;
    Chart1.ChartAreas[0].AxisY.Crossing = Double.MaxValue;

Chart

  • 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-06-09T19:23:39+00:00Added an answer on June 9, 2026 at 7:23 pm

    Alternative solution (I may come back later and tell you how to do it with your existing code)
    Note: While I am using a winform to demonstrate this, it should work the same in your asp.net application.

    In my alternate solution, you could skip the use of this statement

    //Chart1.ChartAreas[0].AxisY.Crossing = Double.MaxValue;
    

    and instead, you could set your dataseries to use the secondary x-axis!

    //chart1.ChartAreas[0].AxisY.Crossing = Double.MaxValue; // Disabled - from your example.
    chart1.ChartAreas[0].AxisY.IsReversed = true;
    chart1.Series[0].XAxisType = AxisType.Secondary;
    
    // Example data for image below
    chart1.Series[0].ChartType = SeriesChartType.Spline;
    chart1.Series[0].Points.Add(new DataPoint(1, 0));
    chart1.Series[0].Points.Add(new DataPoint(2, 40));
    chart1.Series[0].Points.Add(new DataPoint(3, 20));
    chart1.Series[0].Points.Add(new DataPoint(4, 90));
    chart1.Series[0].Points.Add(new DataPoint(5, 20));
    

    My example code it results in the following picture:

    Example

    Should you find my answer adequate please mark as accepted. Thanks!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need help trying to style the asp.net chart control. I have a doughnut
I've got a basic ASP.NET Charting control set to a pie chart, using the
I have a fully functioning Dynamic chart control( just the regular ASP.net Chart )
I have a frustrating problem with an asp.net mvc view containing the Microsoft Chart
I have asp.net TextBox with ontextchanged event this is search text box in my
An ASP.NET Chart control is refreshed on page post back -- but I don't
I have an asp.net/C# app that uses subversion for source control. My app automatically
I'm developing an ASP.Net project. I have an <asp:Table> control on my page, to
i am using MS asp.net 3.5 chart control (Pyramid) and on the click of
I'm using Asp.net chart controls in order to display charts. I have a datatable

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.