Themuppeteer
Programmer
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
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