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 Search | Active Topics | Log In | Register

Chart is drawn out of view area Options · View
dll
#1 Posted : Wednesday, August 18, 2010 9:56:21 AM
Rank: Member

Groups: Registered

Joined: 8/1/2010
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 ?


Baydalka Volodymyr
#2 Posted : Wednesday, August 18, 2010 7:14:02 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
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 : Wednesday, August 18, 2010 10:46:32 PM
Rank: Member

Groups: Registered

Joined: 8/1/2010
Posts: 19
Location: LED
There is no such methos setMargin(...) in area.getDefaultYAxis()...
dll
#4 Posted : Wednesday, August 18, 2010 11:40:50 PM
Rank: Member

Groups: Registered

Joined: 8/1/2010
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 8:22:57 AM
Rank: Member

Groups: Registered

Joined: 8/1/2010
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
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-2016 ArtfulBits. All rights reserved.