The ChartView would gone when pan data

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
xwTech
Newbie
Newbie
Posts: 1
Joined: Fri Oct 28, 2011 12:00 am

The ChartView would gone when pan data

Post by xwTech » Fri Nov 11, 2011 5:58 am

I've used the Android demo. For the line serie ,I add it some values like this,

Code: Select all

String[] str2 = new String[]{"a","b","c","d","e","f","g","h","i","j"}; 
				for (String s:str2) {
					series.add(s);
				}

and I select the Tool to PanData, drag the serie to left untile the serie was invisible .
Then the chartView would gone. Is it a bug????

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: The ChartView would gone when pan data

Post by Yeray » Mon Nov 14, 2011 2:37 pm

Hello,

There are several overrides of the "add" method. The override that accepts just an string as parameter adds a new null point with specified text. This is its signature:

Code: Select all

public int add(final String text)
So with the code above you are adding 10 null points.
I'd suggest you to take a look at the demos and the tutorials.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply