Charting in VS 2005


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Charting in VS 2005

  1. #1
    Join Date
    Sep 2005
    Posts
    106

    Charting in VS 2005 - resolved

    Hello
    I got this to work in VS 2003 but not in VS 2005. The line chart in particular.

    I am getting no errors but on the chart it has a solid blue horizontal line for the points instead of nice random points. I've tried to vary the data numbers since it seems they are simply maxed out but it didn't help.

    Can someone take a look at this code?
    As its rather long line of code I've attached a zipped file.

    Steve
    Attached Files Attached Files
    Last edited by RipIT; 10-27-2007 at 07:11 PM.

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    The problem is that you declare VertLineLength at the form level, but when you assign it a value, you re-declare it in the DrawOutline method. So the local DrawOutline variable gets assigned a value, but the form-level variable (which is used in DrawTheLine) has a value of 0.

    To correct the problem, delete this line from DrawOutline:

    Dim VertLineLength As Integer = PBLineChart.Height - (BaseMargin + TopMargin)
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Sep 2005
    Posts
    106
    Thank you very much!
    That worked perfectly

    Steve

Similar Threads

  1. Replies: 16
    Last Post: 08-22-2007, 06:31 AM
  2. servlet porting problem [urgent]
    By ylithian in forum Java
    Replies: 4
    Last Post: 11-29-2005, 03:48 PM
  3. Replies: 0
    Last Post: 07-18-2005, 10:43 AM

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


   Development Centers

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