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
ttarhan  
#1 Posted : Saturday, December 29, 2012 8:31:42 AM(UTC)
ttarhan
Rank: Newbie

Groups: Registered
Joined: 12/29/2012(UTC)
Posts: 1
Location: California

We have a new project where we're evaluating the use of aiCharts. One of the requirements is plot bands or background bands, where we can specify a range of Y-values and a background color. For example: 0-10 might be yellow, 10-20 might be blue, and 20-30 might be green. These background colors sit behind all of the series and extend from edge-to-edge without any padding/etc. Is there any way to do this in aiCharts?

I've experimented with using area series that span the entire X-value range, but this doesn't defeat the padding. We want/need padding for the normal series, whereas we don't want padding for these background bands (they should extend all the way from the left edge to the right edge).

Thanks for your help.
Baydalka Volodymyr  
#2 Posted : Wednesday, January 2, 2013 12:48:38 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

Try to use ChartAxisStripLine.

Example:
Code:

ShapeDrawable drawable = new ShapeDrawable();
drawable.getPaint().setColor(color);

ChartAxisStripLine sl = new ChartAxisStripLine();

sl.setStart(10);
sl.setEnd(20);
sl.setbackground(drawable);

chartArea.getDefaultYAxis().getStripLines().add(sl);


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