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

Displaying numbers/text and Pie Chart together at the same time.. Options · View
hennamullaji
#1 Posted : Tuesday, February 09, 2010 3:46:49 PM
Rank: Member

Groups: Registered

Joined: 2/9/2010
Posts: 16
Location: Earth
Hello,

I am new to Android development and have started experimenting with ArtfulBits' aiCharts. I need to display a grid of numbers as well as a pie chart in the same screen. I have tried a lot but I'm able to display either the grid of numbers or just the pie chart. Is there a way through which I can display both the numbers and chart one below the other. Any help would be most welcome, if possible please post code snippets.

Thanks in advance.
H
Baydalka Volodymyr
#2 Posted : Tuesday, February 09, 2010 7:10:59 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
I'm not sure that I understand you... however there is sample that demonstrates chart with other view on the same screen.

P.S. don't forget to setup build path and add trial license

Best regards,
File Attachment(s):
aiChartsWithGrid.zip (14kb) downloaded 24 time(s).
Volodymyr Baydalka
Andriod development and support team
hennamullaji
#3 Posted : Wednesday, February 10, 2010 2:00:15 PM
Rank: Member

Groups: Registered

Joined: 2/9/2010
Posts: 16
Location: Earth
Hi! Thanks for the attachment.
I tried it but I am getting an error at "@xml/chart" entry in the chart.xml file in the following way...
Error: No resource found that matches the given name (at 'chart' with value '@xml/chart').
Waiting for your reply.
Baydalka Volodymyr
#4 Posted : Wednesday, February 10, 2010 3:38:25 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
That is just android plug-in bugs/problems. Try to remove "gen" folder and build once again.

Best regards,
Volodymyr Baydalka
Andriod development and support team
bambuk
#5 Posted : Friday, October 15, 2010 3:04:17 PM
Rank: Newbie

Groups: Registered

Joined: 7/23/2010
Posts: 6
Location: Bordeaul
Hi,

Related to AiChartwithGrid example : is it possible to have the same with horizontal orientation ?

The grid on the left, the chart on the right.

Every time i try to have two elements on the same screen with horizontal orientation, one of the two make the other disappear.
Baydalka Volodymyr
#6 Posted : Friday, October 15, 2010 6:13:52 PM
Rank: Developers Team


Groups: Registered, Administrators

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

It seems like you don't set layout_width/height params.

Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <GridView
        android:id="@+id/dataGrid"
        android:numColumns="4"
        android:background="@android:drawable/alert_dark_frame"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"/>
    <com.artfulbits.aiCharts.ChartView
        android:id="@+id/chart"
        chart="@xml/chart"
        android:background="@android:drawable/alert_dark_frame"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="1" />
</LinearLayout>



Please go to there http://developer.android.com/guide/topics/ui/layout-objects.html#linearlayout to get more information about LinearLayout.

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