-
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
-
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
-
By lior3790 in forum Database
Replies: 0
Last Post: 11-02-2006, 05:37 AM
-
By clarksu in forum ASP.NET
Replies: 0
Last Post: 09-04-2006, 09:51 PM
-
By shawnbruman in forum C++
Replies: 0
Last Post: 03-29-2006, 12:44 PM
-
Replies: 1
Last Post: 10-28-2005, 09:57 PM
-
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
Forum Rules
|
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
|
Bookmarks