achartengine

Android Studio: Specify location of gradle or android eclipse project

夙愿已清 提交于 2020-01-04 13:37:00
问题 I extracted all the files from the achartengine library to the following path: C:\Users\student\Desktop\achartengine-1.2.0\ But when I select the path in adding a new module, an error pops up, stating: Specify location of Gradle or Android Eclipse Project 回答1: All I had to move to the jar files into the libs folder. 来源: https://stackoverflow.com/questions/31665404/android-studio-specify-location-of-gradle-or-android-eclipse-project

Achart engine Onclick pie chart slice not working sometimes a bug?

拥有回忆 提交于 2020-01-04 02:41:27
问题 i am working on a pie chart and i am using AchartEngine. i have the pie chart like this: Image of a Pie Chart i have added the onclick to the slices but sometimes only the green slice onlick will not work. this is my code: mChartView = ChartFactory.getPieChartView(this, adc.buildCategoryDataset("Project budget", values), renderer); mChartView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { SeriesSelection seriesSelection = mChartView

Graph plotted using database doesn't plot in Android

核能气质少年 提交于 2020-01-03 06:36:08
问题 Hi I am new to android and I am writing the following code to draw a bar graph taking the values from the database. I have created the database using sqlite data browser. My problem is that when I execute the program the graph doesnot plot. Thanks for your help in advance. public class ChartActivity extends Activity { private String productName; private Context Jayant; private Integer seriesCount; public Intent execute(Context context) throws IOException { SharedPreferences myPrefs = context

achartengine - adding External ImageButtons for zoom on view next to chart causes strange UI behavior

非 Y 不嫁゛ 提交于 2020-01-03 04:50:28
问题 I wanted to have Button on the view on the top of my chart view. PROBLEM: When I press the Button the clone of chart view appears squeezed at the back of pressed button.It is there for only one second and then disappears. Look at the print screen... image link Does anybody have a clue why this happens? I'm attaching dummy source code: layout (main.xml): <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill

Achartengine on android - multiple Y axis

﹥>﹥吖頭↗ 提交于 2020-01-02 05:06:16
问题 Having a hard time getting multiple Y axis to show up on a chart using achartengine on android. I have tried to copy what was done on the "Multiple Temperature Chart" demo here: http://code.google.com/p/achartengine/source/browse/trunk/achartengine/demo/org/achartengine/chartdemo/demo/chart/MultipleTemperatureChart.java but it won't show the Y axis on the right, nor will it show the Yaxis labels I want to show. Any ideas what my code might be doing wrong: mCurrentCostSeries = new XYSeries

Achartengine on android - multiple Y axis

帅比萌擦擦* 提交于 2020-01-02 05:06:06
问题 Having a hard time getting multiple Y axis to show up on a chart using achartengine on android. I have tried to copy what was done on the "Multiple Temperature Chart" demo here: http://code.google.com/p/achartengine/source/browse/trunk/achartengine/demo/org/achartengine/chartdemo/demo/chart/MultipleTemperatureChart.java but it won't show the Y axis on the right, nor will it show the Yaxis labels I want to show. Any ideas what my code might be doing wrong: mCurrentCostSeries = new XYSeries

How to remove unnecessary space between bars in AchartEngine?

家住魔仙堡 提交于 2020-01-01 16:58:53
问题 It just adds unnecessary space between each bars.. How i can reduce or remove it?? All data are dynamically generated.. I tried setting bar width but it doesn't work.. Please see the attached image.. Updated Code XYMultipleSeriesRenderer mRenderer = new XYMultipleSeriesRenderer(); mRenderer.setXLabelsColor(Color.BLUE); mRenderer.setYLabelsColor(0, Color.BLUE); mRenderer.setScale(0.5f); mRenderer.setBarSpacing(0.5f); mRenderer.setBarWidth(75); mRenderer.setAxisTitleTextSize(10); mRenderer

How to Display AChartEngine bar chart properly

◇◆丶佛笑我妖孽 提交于 2020-01-01 09:22:48
问题 I am using achartengine 1.0.1 (latest) and want to demonstrate a bar chart. This is what I want: My Desired Graph What I achieved so far 1:1 view: Zoom-out View: Problems: the left and right portion of graph are lost in 1:1 view. The distance between Bar is so much high. I need to reduce it. The Bar is not appropriately above the text label. The text label color is white. I tried setLabelColor() but not working. The text-size above bar is small. XAxis Text "AC", "WA" etc are overlapping with

How to Display AChartEngine bar chart properly

孤者浪人 提交于 2020-01-01 09:22:31
问题 I am using achartengine 1.0.1 (latest) and want to demonstrate a bar chart. This is what I want: My Desired Graph What I achieved so far 1:1 view: Zoom-out View: Problems: the left and right portion of graph are lost in 1:1 view. The distance between Bar is so much high. I need to reduce it. The Bar is not appropriately above the text label. The text label color is white. I tried setLabelColor() but not working. The text-size above bar is small. XAxis Text "AC", "WA" etc are overlapping with

Android PieChart Using AChartEngine

自闭症网瘾萝莉.ら 提交于 2019-12-25 05:09:26
问题 I'm using AChartEngine to create Pie Chart on Android .It's OK. But I want to remove "Line connect to Label from Pie ". This is my code: // Instantiating a renderer for the Pie Chart DefaultRenderer defaultRenderer = new DefaultRenderer(); for(int i = 0 ;i<distribution.length;i++){ SimpleSeriesRenderer seriesRenderer = new SimpleSeriesRenderer(); seriesRenderer.setColor(colors[i]); seriesRenderer.setDisplayChartValues(true); seriesRenderer.setDisplayChartValuesDistance(0); seriesRenderer