Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSDN example of MSCHART doesn't work !

Status
Not open for further replies.

Themuppeteer

Programmer
Apr 4, 2001
449
0
0
BE
Hello,
I'm trying to implement a graph in my program.
I'm using MSCHART for this.
In the MSDN I found the following:

----------------------------------------------------------
The simplest way of plotting a chart is to create an array of numeric values, and then set the ChartData property to the array, as shown in the following example:

' This code might be pasted into the Load event
' of a Form that has an MSChart control named
' "MSChart1".
Dim arrPrices(1 to 10)
Dim i As Integer
For i = 1 to 10
arrPrices(i)= i * 2
Next i
MSChart1.ChartData = arrPrices

The code above produces a simple, single-series chart. A “series” in a chart, is set of related data points. For example, a typical series might be the prices of a commodity over the course of a year.
----------------------------------------------------------

This doesn't work in my program.
I just copy pasted it,the graph has (of course) the same name,It changes the numbers next to the graph, but it draws nothing.
Is this normal ?
Can anyone help me ?
Thanks,
The Muppeteer

 
DOh!... sorry, I forgot to click on the checkboxes in the properties screen...how stupid of me.
Sorry!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top