Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 23rd, 2003, 01:22 AM
spikeddem spikeddem is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 48 spikeddem User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 39 m 46 sec
Reputation Power: 6
mschart problems

when i make my chart, the x-axis has days, 1-7, when i refresh the graph after updating it, the graph gets really squished together, why?

Last edited by spikeddem : November 23rd, 2003 at 01:55 AM.

Reply With Quote
  #2  
Old November 23rd, 2003, 03:30 PM
spikeddem spikeddem is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 48 spikeddem User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 39 m 46 sec
Reputation Power: 6
Code:
If (Time.Text = "This Week") Then
    Open (App.Path & "\records\records.tkf.txt") For Input As #1
        While iLines < 7
            Line Input #1, temp$
            sCurrentRecord = temp$
            iLines = iLines + 1
            iPos = InStr(sCurrentRecord, ">")
            sMoney = Right(sCurrentRecord, (Len(sCurrentRecord) - iPos))
            sMoney2 = Val(Right(sMoney, (Len(sMoney) - 1)))
            iMoney = Val(sMoney2)
            If (Left(sMoney, 1) = "+") Then
                iMoneyOverTime = iMoneyOverTime + iMoney
            Else
                iMoneyOverTime = iMoneyOverTime - iMoney
            End If
            MSChart1.RowCount = 7
            MSChart1.Column = 2
            MSChart1.Row = iLines
            MSChart1.Data = iMoneyOverTime
        Wend
    Close #1
    iLines = 1
        While iLines < 7
            MSChart1.RowCount = 8
            MSChart1.Column = 1
            MSChart1.Row = iLines
            MSChart1.Data = iLines
            iLines = iLines + 1
        Wend


the graph should sort the money, over days, the graph ends up looking like this:

---------
| \ |
| / |
| / |
| \ |
| \ |
| \ |
--------

very skinny, and no labels(but it appears that the points that are put on are correct

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > mschart problems


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT