Problem with AddArray function
Posted: Sun Apr 20, 2008 11:50 am
Hi, I have chart with 12 Series. I am adding data to series via AddArray function. I can't add string array to my char on x ax.
Here is my source code:
int i;
int[][] poleInt = new int[12][];
string [] x = new string[1000];
// I have fill both arrays with sample values.
for (i = 0; i < 12; i++)
{
for (int j = 0; j < 1000; j++)
{
poleInt = new int[1000];
}
}
// I am filling Series like this:
for (i = 0; i < 12; i++)
{
{
TChart1.Series(i).AddArray(1000,poleInt,x);
}
}
And this is my problem: If x array is type int it is allright and chart is displayed, if x array is type string my application is crashed. I need string values on X ax.
I am programing in ASP.NET using C# language.
Could anyone help me please?
Here is my source code:
int i;
int[][] poleInt = new int[12][];
string [] x = new string[1000];
// I have fill both arrays with sample values.
for (i = 0; i < 12; i++)
{
for (int j = 0; j < 1000; j++)
{
poleInt = new int[1000];
}
}
// I am filling Series like this:
for (i = 0; i < 12; i++)
{
{
TChart1.Series(i).AddArray(1000,poleInt,x);
}
}
And this is my problem: If x array is type int it is allright and chart is displayed, if x array is type string my application is crashed. I need string values on X ax.
I am programing in ASP.NET using C# language.
Could anyone help me please?