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
dll  
#1 Posted : Wednesday, August 18, 2010 11:56:21 AM(UTC)
dll
Rank: Member

Groups: Registered
Joined: 8/1/2010(UTC)
Posts: 19
Location: LED

In some random cases, the chart line is drawn out of view area. Should not engine autoscale series data to ensure that all points will fit ?

How to fix this problem ?

UserPostedImage
Baydalka Volodymyr  
#2 Posted : Wednesday, August 18, 2010 9:14:02 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

aiCharts engine computes axis range by point Y values. But spline function may produce values that fall out of this range (due to interpolation). Try to set margin for axis, like: area.getDefaultYAxis().setMargin(value);

Best regards,
Volodymyr Baydalka
Andriod development and support team
dll  
#3 Posted : Thursday, August 19, 2010 12:46:32 AM(UTC)
dll
Rank: Member

Groups: Registered
Joined: 8/1/2010(UTC)
Posts: 19
Location: LED

There is no such methos setMargin(...) in area.getDefaultYAxis()...
dll  
#4 Posted : Thursday, August 19, 2010 1:40:50 AM(UTC)
dll
Rank: Member

Groups: Registered
Joined: 8/1/2010(UTC)
Posts: 19
Location: LED

and .getScale().setMargin(); - seems to work but margin value depend on data - in some cases it breaks the graph, in other cases - helps. Is there any more stable method to fit spline in view ?
dll  
#5 Posted : Thursday, August 19, 2010 10:22:57 AM(UTC)
dll
Rank: Member

Groups: Registered
Joined: 8/1/2010(UTC)
Posts: 19
Location: LED

I finally figured it out by:

1) Manually calculating min and max in my dataset (getScale().getRealMaximum / getRealMinumum return untelated to dataset values)

2) settings the myYAxis.getScale().setMargin(max-min);
Users browsing this topic
Guest (2)
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.