achartengine

scatter plot with dates at x axis — add custom labels on X axis

≯℡__Kan透↙ 提交于 2019-12-04 02:23:40
问题 I want to have a scatter plot with dates in x-axis. Because if I use ChartFactory.getTimeChartView I receive a line graph and the problem is: I make plot with current date as x axis and data (user input) as y axis.I store these data (date and user data) in Lists and also in a file. The user may enter multiple times data during a day.And some of the data may be the same,so if I use a Linegraph the plot messes up.That's why I need scatter. 1)How can I do this? 2) Also, can someone point me to

calling acharengine inside fragment

非 Y 不嫁゛ 提交于 2019-12-04 01:53:00
问题 I'm very new to the android world, coming from a background of lots of server-side programming . Very Little Java. I am developing an application in which I need to have two fragments, one on the left which displays the navigation, and one on the right, that displays the content. My first major challange is to make one of the navigation links open up a chart using acharengine. I have an example from achartengine that I have been following here: achartengine example I have been following the

setting line thickness for a graph - Achart engine

时光总嘲笑我的痴心妄想 提交于 2019-12-03 20:50:48
I am using AchartEngine for my android phone applications. Everything looks fine but the thickness of a line for the rendered graphs does not appeared to be good. I wanted to increase the thickness for these graphs. OK, I got the answer. It should be something like below: int length = renderer.getSeriesRendererCount(); for (int i = 0; i < length; i++) { XYSeriesRenderer seriesRenderer = (XYSeriesRenderer) renderer .getSeriesRendererAt(i); seriesRenderer.setLineWidth(2f); } 来源: https://stackoverflow.com/questions/4678324/setting-line-thickness-for-a-graph-achart-engine

How to set Image inside of Donut-achartEngine Graph?

我只是一个虾纸丫 提交于 2019-12-03 09:48:59
I am using aChartEngine Library to make donut graph.But having problem to add image inside of donut Graph. I can set Background Color only , but not get able to set background image inside of donut. Please check image . This could help.. <RelativeLayout android:layout_width="match_parent" android:layout_height="170dp" > <LinearLayout android:id="@+id/left_graph_for_head_injury" //here to draw donut android:layout_width="match_parent" android:layout_height="170dp" > </LinearLayout> <ImageView //image to place android:layout_width="95dp" android:layout_height="95dp" android:layout_centerInParent

LinearLayout achartengine Chart not displaying in ScrollView

淺唱寂寞╮ 提交于 2019-12-03 08:06:23
I'm trying to create an achartengine chart within a scrollview but it won't display! It just shows a black screen, but doesn't crash or anything. The thing is if I just change my tag to the chart displays just fine. And in my Java code I do have renderer.setInScroll(true); for the charts renderer. Is this an issue with my xml? Here is my xml: <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <LinearLayout android:layout_height="wrap

AChartEngine And Android Studio

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have to create an application that makes extensive use of charts. Reading the web I chose achartengine that seems to have everything I need. I downloaded the jar file, I plugged in the libs folder, I selected "add to library" and I lunch the gradlew clean. Result in the sources where I do the import of org.achartengine.xxxx I always returned the error that fails to resolve symbols . Do you have suggestions? Thank you Andrea 回答1: I am able to use this library in my Android Studio project, this topic explains how to add AChartEngine repo to

Menu and a ContextMenu for a aChartengine chart

拜拜、爱过 提交于 2019-12-02 16:38:34
问题 Is it possible? have anyone been doing this before? I don't know where to start. I mostly need the menu, not the context menu. My "BudgetPieChart" class public class ExpensesByCategoriesPieChart extends AbstractChart{ private DataToArray dta; @Override public String getName() { return MyApplication.getContext().getString(R.string.ExpensesByCategoriesPieChartName); } @Override public String getDesc() { return "The budget per project for this year (pie chart)"; } @Override public Intent execute

dates in x axis are superimposed - plot shows the last entered data 2 times (when not using setXAxisMax)

假装没事ソ 提交于 2019-12-02 13:25:00
(I fixed some issues with saving and loading regarding my previous posts) I am saving some data (mydata) and the date as strings (dates_Strings). In graph activity I load data and dates.And I convert dates_Strings to dates in order to use them in the plot. Now , while entering some data for example "1","2","3" in 10/05/13 I am getting the following image. All good until now. If I try to enter some more data ("3,4,7") in another date (13/05/13) I am getting this image. The dates are superimposed. The MainActivity : The code: //copy the dates_asString to date (Dates) in order to use them in

how to fill array list between 2 points?

試著忘記壹切 提交于 2019-12-02 10:10:51
i have this piece of code. To explain: The user inputs "initcores" data and "ttime" data (the "fcores" is a result). I want to fill the x array with values from 0 to ttime and the y from initcores to fcores and do the scatter plot ,x vs y. I have one problem : If i put " for (double t=0;t<=fcores;t=t+fcores/10.0){ y.add(t); " it gives me a plot but its wrong. if i put " for (double t=initcores ;t<=fcores;..." (which is right because we are starting from initcores) it doesn't appear anything in the plot. Am i not doing sth right here? Thank you! ......... Double initcores= getInitcores();

Menu and a ContextMenu for a aChartengine chart

别说谁变了你拦得住时间么 提交于 2019-12-02 08:12:42
Is it possible? have anyone been doing this before? I don't know where to start. I mostly need the menu, not the context menu. My "BudgetPieChart" class public class ExpensesByCategoriesPieChart extends AbstractChart{ private DataToArray dta; @Override public String getName() { return MyApplication.getContext().getString(R.string.ExpensesByCategoriesPieChartName); } @Override public String getDesc() { return "The budget per project for this year (pie chart)"; } @Override public Intent execute(Context context) { dta = new DataToArray(); String[] categories = dta.expenseByCategoriesToArray();