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
Vinoth  
#1 Posted : Tuesday, August 28, 2012 6:54:25 PM(UTC)
Vinoth
Rank: Advanced Member

Groups: Registered
Joined: 4/25/2012(UTC)
Posts: 68
Location: India

Hi,

If i use ChartType with Spline, the curve is cutting sometime with highest axis value. Attached screenshot.
Vinoth attached the following image(s):
Out of Range.png (21kb) downloaded 35 time(s).

You cannot view/download attachments. Try to login or register.
Baydalka Volodymyr  
#2 Posted : Monday, September 3, 2012 1:04:32 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

Try to set axis margin manually - chartArea.getDefaultYAxis().getScale().setMargin(200)

Best regards,
Volodymyr Baydalka
Andriod development and support team
Vinoth  
#3 Posted : Wednesday, September 5, 2012 7:10:59 PM(UTC)
Vinoth
Rank: Advanced Member

Groups: Registered
Joined: 4/25/2012(UTC)
Posts: 68
Location: India

Yes. But i don't know what would be the maximum value. It will vary dynamically. And also if i assign for e.g, 1000, then it will be overlapped as there is no space to fit. Could you please tell me some other way to avoid this?
Vinoth  
#4 Posted : Wednesday, October 31, 2012 3:36:12 PM(UTC)
Vinoth
Rank: Advanced Member

Groups: Registered
Joined: 4/25/2012(UTC)
Posts: 68
Location: India

Hi,

Could you please suggest something to solve this? I am waiting for a long time. Please do the needful.
Vinoth  
#5 Posted : Friday, November 23, 2012 1:51:40 PM(UTC)
Vinoth
Rank: Advanced Member

Groups: Registered
Joined: 4/25/2012(UTC)
Posts: 68
Location: India

Could you please tell me how to fix this?
Baydalka Volodymyr  
#6 Posted : Friday, November 23, 2012 5:47:12 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

You may override ChartSplineType.getYRange - and change logic of range computing.

series.setType( new ChartSplineType()
{
public DoubleRange getYRange (ChartSeries series)
{
// your logic here
}
});

Best regards,

Volodymyr Baydalka
Andriod development and support team
Vinoth  
#7 Posted : Monday, November 26, 2012 12:00:01 PM(UTC)
Vinoth
Rank: Advanced Member

Groups: Registered
Joined: 4/25/2012(UTC)
Posts: 68
Location: India

Hi,

By overriding this method what can i achieve. Could you please explain briefly..?
Vinoth  
#8 Posted : Thursday, November 29, 2012 3:06:11 PM(UTC)
Vinoth
Rank: Advanced Member

Groups: Registered
Joined: 4/25/2012(UTC)
Posts: 68
Location: India

Could you please help me.?
Baydalka Volodymyr  
#9 Posted : Thursday, November 29, 2012 9:04:46 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

Example:

Code:
class MySplineType extends ChartSplineType
{
	@Override
	public DoubleRange getYRange(ChartSeries series)
	{
		List points = series.getPointsCache(); 
		float[] coords = new float[2 * points.size()];
		
		for (int i = 0; i < points.size(); i++)
    {
			ChartPoint point = (ChartPoint)points.get(i);
			coords[2 * i] = (float) point.getX();
			coords[2 * i + 1] = (float) point.getY(0);
    }
		
		RectF bounds = new RectF();
		createSpline(coords).computeBounds(bounds, true);
		
	  return new DoubleRange(bounds.top, bounds.bottom);		  
	}
}

....

series.setType(new MySplineType());


Best regards,
Volodymyr Baydalka
Andriod development and support team
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.