Creating series array

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
SDG
Newbie
Newbie
Posts: 40
Joined: Tue Apr 08, 2003 4:00 am

Creating series array

Post by SDG » Wed Jun 24, 2009 1:33 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Creating series array

Post by Narcís » Thu Jun 25, 2009 9:11 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply