Posted by Lee on Wednesday, December 1, 2010 at 6:19am.
Not sure if you have the latest version of code, because it doesn't compile.
Inside of the for-loop, you have DrawLines instead of DrawLine, and the calculations have to be cast as integers.
Once that's done, the axes seem to show properly, which means that you understand how the DrawLine function works.
Then you need to calculate the starting and end points of each line segment, not forgetting that for a line chart, the end-point of one segment is the beginning of another segment. Right now, the lines are not joining each other.
Also, the size of the picBox is probably left to default. Since you are "hardcoding" the axes, you may want to define the size of the picBox inside the sub-program using picBox.width=.... etc.
Give it another try. You're not far.
Okay, I understand what you've advised somewhat, but was wondering if you can give a simple example of the line segments. I kind of based this off of a bar chart I created. Thanks..
maximum value called
Related Questions
Geometry - Recal a graph, chart, or table that you used in previous courses to ...
Math 115 wk7 - Recall a graph, chart, or table that you used in previous courses...
math - Look at the line chart shown in Figure A-4. This line chart illustrates ...
Programming - Write a program that would calculate and display the results for ...
computer programming - small startup software developer company needs to create ...
business - five companies contribute different amounts to a local charity. which...
Computer Information - A __________ provides the tools that a programmer uses to...
Business - Fice companies contributed different amounts to a local charity. ...
Math 157 - The chart on the next page is an example of a quality control chart. ...
programming logic - The Banking e-Teller system allows bank customers to perform...
For Further Reading