whitespace COMPANY whitespace SERVICES whitespace PRODUCTS whitespace PURCHASE whitespace SUPPORT whitespace CONTACTS whitespace Home whitespace Contact Us whitespace Site Map whitespace
whitespace
SUPPORT
whitespace
FORUM
whitespace
FAQS
whitespace
SUBSCRIPTION
whitespace
REQUEST ON-LINE
whitespace
whitespace

Technical Support Forum

Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
wannabewize  
#1 Posted : Monday, August 23, 2010 12:24:57 PM(UTC)
wannabewize
Rank: Newbie

Groups: Registered
Joined: 8/23/2010(UTC)
Posts: 1

Hi.
I am working with some financial android app.


The label of x-axis should be time label, so i use ChartPoint.setAxisLabel function.

It supposed to be like below. I tested it on HTC, Desire.

UserPostedImage


But LG model, LU2300 has some problem with labeling.

If i use ChartPoint.setAxisLabel function, It looks like below.

UserPostedImage

So i delete the labeling function, It works but the label is only the index of the chart point.

Below, It's my code for setting label.
Quote:

public void updateChart(List<Map<String,String>> ret) {
Log.d("ChartTest", "chart count : " + ret.size());
chartDataList = ret;
series.getPoints().clear();

for (int i = 0; i < ret.size(); i++) {
Map<String,String> one = ret.get(i);
ChartPoint point = new ChartPoint(i, Double.valueOf(one.get("cl")));
point.setTag(one.get("date"));

setAxisLabel(series.getActualXAxis().getScale(), point, i);
series.getPoints().add(point);
}
}

private void setAxisLabel(ChartAxisScale scale, ChartPoint one, int index) {
if ( false == isLabelExposeIndex(index) ) {
one.setAxisLabel("");
return;
}

String label = null;
String dateStr = (String)one.getTag();
Log.d("ChartTest", "dateStr : " + dateStr);

if ( isMinuteInterval() ) {
label = dateStr.substring(4,6) + "." + dateStr.substring(6,8);
} else {
label = dateStr;
}

one.setAxisLabel(label);
}


Edited by user Monday, August 23, 2010 12:27:30 PM(UTC)  | Reason: Not specified

Baydalka Volodymyr  
#2 Posted : Thursday, August 26, 2010 9:30:30 PM(UTC)
Baydalka Volodymyr
Rank: Member

Groups: Registered
Joined: 7/28/2009(UTC)
Posts: 447
Man

Hi,

Try to debug your "labeling" function. Make sure that labels are correct. Perhaps LU2300 doesn't measure labels properly and it falls out of chart.

Best regards,
Volodymyr Baydalka
Andriod development and support team
ccoroom  
#3 Posted : Friday, September 3, 2010 6:37:42 PM(UTC)
ccoroom
Rank: Member

Groups: Registered
Joined: 3/15/2010(UTC)
Posts: 10

I have a same problem on SKY phones.
(http://www.isky.co.kr/index.sky)
There're domestic versions that you may not concern. But, it happens on many devices not only for LU2300.

What's the difference between your automatic labeling and custom labeling?
I just think positioning labels are not a matter of custom labeling.
And I can see about 10% of upper area of a chart. If it is a problem of devices, what it means?

My customer complains about this issue so many times.
Please, let me know the solution for this problem.

Thanks.

Edited by user Friday, September 3, 2010 6:49:16 PM(UTC)  | Reason: Not specified

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Company | Services | Practices | Technologies | Career | Contacts | Privacy
© 2005-2017 ArtfulBits. All rights reserved.