Click here to Skip to main content
15,881,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written code for storing data in an Excel worksheet and then I have generated a graph using the same data. The following is the data:

Date        MaxValue    MinValue
12/29/2010  8:21:29     6:00:32
12/30/2010  4:39:36     4:39:36
1/4/2011    6:37:51     6:37:51

Now I want to draw a line graph with the Date as my x-Axis and max value as one of the Series and Min Value as other series.
Posted
Updated 20-Jan-11 0:17am
v2

1 solution

Go to Chart Wizard and select the line. Delete Series 3 when the Source Data dialog comes up.

For Series 1, change Values to the MaxValue column (=Sheet1!R2C2:R4C2) and The Category (X) axis labels (bottom field) to the Date column (=Sheet1!R2C1:R4C1).

For Series 2, do the same with MinValue.

Make sure to add their names in the Name field.

UPDATE: Hmmm, I missed the VB.net in the subject only.

Try this[^].
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900