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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:55:02+00:00 2026-05-25T06:55:02+00:00

I am using MS chart control .net 4 framework in Visual studio 2010 using

  • 0

I am using MS chart control .net 4 framework in Visual studio 2010 using Windows forms. I am having an issue with the scale of the primary x axis on a user input from a text box on a button click. I am also using both the primary and secondary y axes which work on a user input.

I have checked the settings for each axis and they all have the same settings. I don’t see why both y axes work on the user input and the x does not. Please help.

The following is the code I am using:

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

    Chart1.ChartAreas("Area1").AxisX.Minimum = Val(XPrimeMin.Text)
    Chart1.ChartAreas("Area1").AxisX.Maximum = Val(XPrimeMax.Text)
    Chart1.ChartAreas("Area1").AxisX.Interval = Val(XPrimeInterval.Text)
    Chart1.ChartAreas("Area1").AxisX.LabelStyle.Interval = Val(XPrimeInterval.Text)

    Chart1.ChartAreas("Area1").AxisY.Minimum = Val(YPrimeMin.Text)
    Chart1.ChartAreas("Area1").AxisY.Maximum = Val(YPrimeMax.Text)
    Chart1.ChartAreas("Area1").AxisY.Interval = Val(YPrimeInterval.Text)
    Chart1.ChartAreas("Area1").AxisY.LabelStyle.Interval = Val(YPrimeInterval.Text)

    Chart1.ChartAreas("Area1").AxisY2.Minimum = Val(YSecMin.Text)
    Chart1.ChartAreas("Area1").AxisY2.Maximum = Val(YSecMax.Text)
    Chart1.ChartAreas("Area1").AxisY2.Interval = Val(YSecInterval.Text)
    Chart1.ChartAreas("Area1").AxisY2.LabelStyle.Interval = Val(YSecInterval.Text)

End Sub

This is a screen shot of what I get while on auto-scale:

enter image description here

This is after I set the Axes by user input:

enter image description here

  • 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-25T06:55:02+00:00Added an answer on May 25, 2026 at 6:55 am

    The solution that worked for me was to convert the value I was taking from the array to a double value before adding it to the series data point.

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

Sidebar

Related Questions

I am using a Microsoft Chart control (system.windows.forms.datavisualization.charting.chart) in a Windows forms application, vb.net
I'm using the Microsoft Chart Controls for Microsoft .NET Framework 3.5 and am having
I'm implementing a scatter plot using the MS Chart Control .NET 3.5, WinForms, C#.
I'm using an asp.net chart control to display a pie chart, image below. http://i39.tinypic.com/ndtzx1.png
I am working on a simple chat application using a System.Windows.Forms.WebBrowser Control to display
I'm using the Chart control from .net 4.0 in my C# WinForms app. I
I'm using the Chart control on my .Net 4.0 WinForms application. I'm plotting a
I'm attempting to user System.Windows.Forms.DataVisualization.Charting to create a line chart. I've been using the
I am trying to generate a chart using the MS Chart Control in ASP.NET
I've got a basic ASP.NET Charting control set to a pie chart, using the

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.