Page 1 of 1

The ChartView would gone when pan data

Posted: Fri Nov 11, 2011 5:58 am
by 17060554
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????

Re: The ChartView would gone when pan data

Posted: Mon Nov 14, 2011 2:37 pm
by yeray
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.