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

How to control a chart's height? Options · View
p.t.
#1 Posted : Thursday, May 26, 2011 9:00:34 AM
Rank: Newbie

Groups: Registered

Joined: 5/26/2011
Posts: 8
Location: USA
Hi, I just started evaluating aiCharts. A great product! My question is: How to control a chart's height? For example, I want it to be 200 pixel (on Android), how can I do that?

A little background: I'm putting a ChartView inside a ScrollView. I noticied that using the following in the XML file doesn't work:

android:layout_height="200dp"

But to my surprise, if I include a background image in the XML file like following:

android:background="@drawable/chartBackground"


And if I change the PNG file's height, somehow the chart height changes accordingly! So, how exactly does aiChart determine a ChartView's height?

Thank you.
Baydalka Volodymyr
#2 Posted : Thursday, May 26, 2011 5:51:46 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
Hi,

It's problem of ScrollView. Try to use next xml-layout.

ScrollView
LinearLayout
ChartView
-android:layout_width="fill_parent"
-android:layout_height="200dp"

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-2016 ArtfulBits. All rights reserved.