achartengine

How to make disable to show zoom pane in AChartEngine

守給你的承諾、 提交于 2019-12-01 08:06:18
Can anyone help me about AChartEngine. Here the first thing I need is not to show zoom icon with the chart and also not to show x,y labels. But I could not find any solution You can use XYMultipleSeriesRenderer methods to enable or disable zooming and pan like this. renderer.setPanEnabled(false, false); renderer.setZoomRate(0.2f); renderer.setZoomEnabled(false, false); and regarding removing the X, Y labels, I think you cannot remove labels. Workaround is to pass an empty String (i.e "" ). For further reference you can download their Documentation , under achartengine-0.6.0-javadocs.zip . 来源:

combination of two bar chart and two line chart using aChartEngine in Android

好久不见. 提交于 2019-12-01 06:39:51
below code to combine two bar and two line chart : public class GraphCombination { private Context context; private String[] weekDays = new String[] { "Sunday", "Monday", "Tuesday", "Wednesday", "Thrusday", "Friday", "Saturday" }; private XYSeriesRenderer lowestTempBarRenderer, highestTempBarRenderer, lowestTempLineRenderer, highestTempLineRenderer; private XYMultipleSeriesRenderer multiRenderer; private int margins[] = { 50, 50, 50, 50 }; public GraphCombination(Context context) { this.context = context; } public void drawChart() { int days[] = { 0, 1, 2, 3, 4, 5, 6 }; double lowestTemp[] = {

Are multiple stacked Bar charts possible using Achartengine?

核能气质少年 提交于 2019-12-01 06:29:26
I tried adding another set of values to the demo example of stacked bar charts with achartengine , but the new values introduced by me don't appear on the chart. Is Stacking bars limited to two bars? public Intent getIntent(Context context) { String[] titles = new String[] { "Good", "Defect", "Repair" }; List<double[]> values = new ArrayList<double[]>(); values.add(new double[] { 14230, 12300, 1424, 15240, 15900, 19200, 22030, 21200, 19500, 15500, 12060, 14000 }); values.add(new double[] { 14230, 12300, 14240, 15244, 15900, 19200, 22030, 21200, 19500, 15500, 12600, 14000 }); values.add(new

Issue in achartengine jar file

自作多情 提交于 2019-12-01 06:28:08
问题 Actually i have created an app in which i have used achartengine to contruct graph. It was running ok , but today i saw an update for android SDK to r17 . Once i upadated the sdk the app i had build started crash. In the logcat i show the following error report. Why this happen, is it because the jar file i have used is deprecated. 03-27 14:44:26.320: E/AndroidRuntime(4360): java.lang.NoClassDefFoundError: [Lorg.achartengine.chart.PointStyle; 03-27 14:44:26.320: E/AndroidRuntime(4360): at in

How to make disable to show zoom pane in AChartEngine

亡梦爱人 提交于 2019-12-01 06:15:36
问题 Can anyone help me about AChartEngine. Here the first thing I need is not to show zoom icon with the chart and also not to show x,y labels. But I could not find any solution 回答1: You can use XYMultipleSeriesRenderer methods to enable or disable zooming and pan like this. renderer.setPanEnabled(false, false); renderer.setZoomRate(0.2f); renderer.setZoomEnabled(false, false); and regarding removing the X, Y labels, I think you cannot remove labels. Workaround is to pass an empty String (i.e ""

Android achartengine simple pie chart

你离开我真会死。 提交于 2019-12-01 05:54:30
I'm following an example in this link and created a class as below public class aChartExample { public Intent execute(Context context) { int[] colors = new int[] { Color.RED, Color.YELLOW, Color.BLUE }; DefaultRenderer renderer = buildCategoryRenderer(colors); CategorySeries categorySeries = new CategorySeries("Vehicles Chart"); categorySeries.add("cars ", 30); categorySeries.add("trucks", 20); categorySeries.add("bikes ", 60); return ChartFactory.getPieChartIntent(context, categorySeries, renderer, null); } protected DefaultRenderer buildCategoryRenderer(int[] colors) { DefaultRenderer

combination of two bar chart and two line chart using aChartEngine in Android

亡梦爱人 提交于 2019-12-01 05:32:23
问题 below code to combine two bar and two line chart : public class GraphCombination { private Context context; private String[] weekDays = new String[] { "Sunday", "Monday", "Tuesday", "Wednesday", "Thrusday", "Friday", "Saturday" }; private XYSeriesRenderer lowestTempBarRenderer, highestTempBarRenderer, lowestTempLineRenderer, highestTempLineRenderer; private XYMultipleSeriesRenderer multiRenderer; private int margins[] = { 50, 50, 50, 50 }; public GraphCombination(Context context) { this

Are multiple stacked Bar charts possible using Achartengine?

此生再无相见时 提交于 2019-12-01 04:51:41
问题 I tried adding another set of values to the demo example of stacked bar charts with achartengine, but the new values introduced by me don't appear on the chart. Is Stacking bars limited to two bars? public Intent getIntent(Context context) { String[] titles = new String[] { "Good", "Defect", "Repair" }; List<double[]> values = new ArrayList<double[]>(); values.add(new double[] { 14230, 12300, 1424, 15240, 15900, 19200, 22030, 21200, 19500, 15500, 12060, 14000 }); values.add(new double[] {

How to make space between bars in bargraph using Achartengine if each bar is different color containing different values

筅森魡賤 提交于 2019-12-01 03:20:59
I am displaying 4 values in a bargraph where each bar is different color. when I am displaying the graph each bar overlapping each other. I want to make space between the bars I tried with setBarSpacing() by putting different values still its not working. is there any other idea. package com.example.barchartview; import org.achartengine.ChartFactory; import org.achartengine.GraphicalView; import org.achartengine.chart.BarChart.Type; import org.achartengine.model.CategorySeries; import org.achartengine.model.XYMultipleSeriesDataset; import org.achartengine.renderer.XYMultipleSeriesRenderer;

Android charts: achartengine or AndroidPlot?

邮差的信 提交于 2019-11-30 06:27:15
I want to develope an activity to display sensor data in a plot. I've been looking around and I have found that the more interesting options for me are achartengine and AndroidPlot . I need the following requirements: Line plot with 3 or more series Dynamic plots Integration witha layout with other gui Integration with database I think that both lybraries are ok with my requirements, but could someone tell me from his experience wich one is better? Which one is easier to integrate with an app? I haven't look at AChartEngine but have used AndroidPlot and can relay my experience here. I've