|
Using ArrayList in ChartDirector |
Posted by Teguh on Sep-08-2009 14:13 |
|
Hi guys,.. i need your help.. I have a problem here..
I was created an arraylist (named "A") that's contained value (ex: "200","250",
"300","350","400") as double..
How to bind all data into linelayer ????
Thank you... |
Re: Using ArrayList in ChartDirector |
Posted by Peter Kwan on Sep-08-2009 23:44 |
|
Hi Teguh,
The exact code depends on your programming language. The ArrayList in Java and C# are different. Also, it depends on what is in the ArrayList.
You mentioned you have put values as double in the ArrayList. But you also say the value is "200", which can mean a double value of 200, or an integer of 200, or a text string "200". In the followings, I will assume it is really a double as you mentioned, and not an integer or a text string.
For example, in C#, you may use:
double[] myData = myArrayList.ToArray(typeof(double));
If you need further help, please confirm which programming language you are using, and whether the contents in the ArrayList are really values of double data type. If they are of other data type, please inform me what is the data type.
Hope this can help.
Regards
Peter Kwan |
|