last day (14 days later) » 

10:10 AM
1
Q: How can I recreate piechart (AChartEngine) on spinner item click in Android?

SriAm using AChartEngine library to displaying data's in PieChart view in my project. Initially I created Dataset, Render, View and Chart Factory to create PieChart and its working fine. For eg PieChart for Gender OnCreate(){ malecount = 3; femalecount = 1; createpiechart(); // Creati...

 
Hello PieChart is Recreatedd u r Not Chaning or PieChart
Chnage value of Pai Chart when u want to recreate chart
 
Sri
Sorry am new to AChartEngine, Can you tell How to change the value ?
 
where is NAME_LIST[i] array
 
Sri
NAME_LIST[I] this array is constant only (Male & Female)
1st initially my piechart is created using values male=3, female=1 and now if spinner is selected 'Last Week' I need ti set different values like male=2, female=1 now how to clear all values from piechart and add new piechart ??
Hi Naveen
Please solve my problem
 
hiii
hiiiiiiiiiiiiii
waiting for reply
 
Sri
10:17 AM
hi
sory
I created my PieChart for displaying genders
 
Sri
I get data from sq lite database
 
have u array
 
Sri
till now that code is working fine
yeah
 
like arrayList
 
Sri
10:18 AM
yes
can i post my code here
package com.orionsystem.qaodanalyzer.reports;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

import org.achartengine.ChartFactory;
import org.achartengine.GraphicalView;
import org.achartengine.model.CategorySeries;
import org.achartengine.renderer.DefaultRenderer;
import org.achartengine.renderer.SimpleSeriesRenderer;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
 
when u click spinner item data come from database are not
 
Sri
Please check this code once
 
Sri
yea data will cum frm db
see that image tat i attached
in tat bottom it showmn na male 3 female 1 like
tat font didnt show color wen i click n update from spinner
 
please check data come from database are not u r using date in datadase
and also apply where couse on date
5
Q: How to add date in sqlite database

Kostya KhutaI have sqlite database private static final String DB_PROCESS_CREATE = "create table " + DB_TABLE_PROCESS + "(" + PROCESS_ID + " integer primary key autoincrement, " + PROCESS_DATE + " date);"; I create it `db.execSQL(DB_PROCESS_CREATE); How to add date value in th...

r u here
 
Sri
10:45 AM
hi sorry
my team leader came with new discusson
am getting data's from database tats not problm
new piechart also created
but tat bottom text is their.. tat text color is changed
 
Sri
10:58 AM
Hi Mr Naveen
 
 
2 hours later…
Sri
1:06 PM
thankyou very much i solved
 

last day (14 days later) »