DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2004
    Posts
    90

    Question MSChart Question - Y-Axis Scale

    I am using mschart in my application and would like advice on how to specify how the chart computes the scale for the "Y" axis. I like the way the tool automatically computes the "Y" axis scale except when I plot very large numbers, the scale defaults to scientific notation. For example, the scale for large numbers such as 50,000,000 is represented as 5e+007. Is there a way to get the tool to display the real numbers instead of scientific notation for the Y scale?
    Brian

  2. #2
    Join Date
    Aug 2004
    Posts
    90
    I discovered how to eliminate the scientific notation. The following code seems to work...

    for i=1 to MSChart1.Plot.Axis(VtChAxisIdY).Labels.Count
    MSChart1.Plot.Axis(VtChAxisIdY).Labels.Item(i).Format = "##0.00"
    Next i

    However, my next question is much more challenging. How do I assign data to the Y2 Axis. For example, if I create an array with 3 columns, the first is the x-axis labels, the next column is Value1 series and the last column is Value2 series, I want Value1 series plotted against the Y-axiz and Value2 series plotted against the Y2-axis. Currently, both the Value1 and Value2 series are plotted against the Y-axis. Can't figure out how this is done. Can't find anything on the net that describes how to assign values to the Y2-axis. MSChart offers both a Y and Y2 axis which implies that different values can be plotted against each axis, but no explanation how.
    Brian

Similar Threads

  1. Replies: 0
    Last Post: 11-02-2006, 05:37 AM
  2. Chart scale on "Y" axis
    By clarksu in forum ASP.NET
    Replies: 0
    Last Post: 09-04-2006, 09:51 PM
  3. AXIS C++ Help
    By shawnbruman in forum C++
    Replies: 0
    Last Post: 03-29-2006, 12:44 PM
  4. Help with a method
    By NLS in forum Java
    Replies: 1
    Last Post: 10-28-2005, 09:57 PM
  5. msChart don't display xY chart
    By joni in forum VB Classic
    Replies: 0
    Last Post: 07-13-2000, 05:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links