Page 1 of 1

Creating series array

Posted: Wed Jun 24, 2009 1:33 pm
by 8440512
Hello,

I am trying to create series array variable, while declaring and initializing variable, it raises an exception as class not supported.

Series series_passbook_types[] = new Series[10];

How will I declare and create array of type Series?

Thanks and Best,
Veeranna Ronad.

Re: Creating series array

Posted: Thu Jun 25, 2009 9:11 am
by narcis
Hi Veeranna,

Code below works fine for me here. Can you please check if it works fine at your end?

Code: Select all

        Line series_passbook_types[] = new Line[10];
        
        for (int i=0; i<series_passbook_types.length; i++)
        {
            series_passbook_types[i] = new Line(tChart1.getChart());
            tChart1.getSeries(i).fillSampleValues();
        }
Thanks in advance.