DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2004

    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?

  2. #2
    Join Date
    Aug 2004
    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.

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

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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center