achartengine

android - How to change the background color of the graph using achartengine

时光毁灭记忆、已成空白 提交于 2019-11-30 02:57:25
问题 I implemented the Line graph using the achartengine. But i want change the line graph background color. Somebody suggest that the following code for changing the background color. mRenderer.setApplyBackgroundColor(true); mRenderer.setBackgroundColor(Color.RED); But it will not change the entire background. I want to change the entire background is it possible? if yes, then how to do it please can anybody help me.The following image is the output of the previous code.I want to change the

How to use chart inside fragment in Android using Achartengine library?

天涯浪子 提交于 2019-11-29 23:32:51
问题 I have an activity 3ChartPerTabActivity where i have 3 tabs fragment with Viepager.Each fragment view has just different color.So far is working. My problem occurs when i try to add a PieChart to first tab fragment layout... I want to make a chart per tab.For example first tab a Pie chart e.t.c. I decided to use Achartengine library.I tried but i get "NullPointerException" . Here is the tab_frag1_layout.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android

achartengine toScreenPoint(double) always returns nullPointerException

痞子三分冷 提交于 2019-11-29 14:51:05
Every time I call this method it return nullpointerexception: java.lang.NullPointerException at org.achartengine.chart.XYChart.toScreenPoint(XYChart.java:867) I see mScreenR of chart is null Without using this method toScreenPoint(double) the charts works well this is the code: package com.insights.insights.gui; import java.util.ArrayList; import org.achartengine.ChartFactory; import org.achartengine.GraphicalView; import org.achartengine.chart.LineChart; import org.achartengine.chart.PointStyle; import org.achartengine.chart.XYChart; import org.achartengine.model.XYMultipleSeriesDataset;

save user data during a day (the same day -> many user data)

百般思念 提交于 2019-11-29 14:02:43
I have an application where the user enters data in edittext and presses the save button. By pressing 'save' I save in a file the user data (in one column) and the current date (in the other column). Then , I press another button and make the plot (using achartengine) date (x axis) data (y axis). So, entering data during a day ,results in saving for example: "1" (user data) -> 20/4/2013 , "2" -> 20/4/2013 , "3" -> 20/4/2013. And in plot I have 3 points in y axis (ok) and 3 points in x axis (not ok). I want to have one point in x axis because the data where entered in the same day. I save data

AChartEngine高级应用之CombinedXYChart(组合统计图)在单个统计图上显示多样化的数据...

左心房为你撑大大i 提交于 2019-11-29 12:22:46
AChartEngine高级应用之CombinedXYChart(组合统计图)在单个统计图上显示多样化的数据 现在是信息飞速发展时代,单个的统计图已经无法满足实际生产的要求,人们只想通过快速的观察就能知道很多信息,所以组合统计图就运用而生了,诸如,人们想了解一个地方的大致情况,首先可能要了解当地的天气情况,交通运输情况等,以下我模拟的是一个地方的天气、光照时间分布情况的统计图。这个是AChartEngine图表的高级应用。 构建CombinedXYChart图的步骤主要分为以下三步,还需要在项目中引入AChartEngine依赖jar包,在Manifest中添加:<activityandroid:name="org.achartengine.GraphicalActivity" /> 1. 设置XYMultipleSeriesRenderer XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();// 设置描绘器 renderer.setAxisTitleTextSize(16); renderer.setChartTitleTextSize(20); renderer.setLabelsTextSize(15); renderer.setLegendTextSize(15); renderer

achartengine demo compiling, but runtime error

独自空忆成欢 提交于 2019-11-29 09:25:18
I followed demo instructions on page http://www.achartengine.org/content/goodies.html i successfully imported the demo project, but every chart give throws a NoClassDefFoundError at runtime, similar to this: java.lang.NoClassDefFoundError: org.achartengine.model.XYMultipleSeriesDataset achartengine-1.0.0.jar is on build path, and it is reported under 'Referenced Libraries'. I guess this is a newbie problem, but I decided to report it since I just imported the demo project 'as is' and tried to run it on my phone. Do I need other steps, not listed on 'goodies' page? I found a good answer on

Android charts: achartengine or AndroidPlot?

十年热恋 提交于 2019-11-29 06:10:49
问题 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

Is achartengine ready for realtime graphing?

◇◆丶佛笑我妖孽 提交于 2019-11-29 04:08:46
I'm trying to graph some real-time data, "realtime" here means < 10msec data, ideally as low as possible. I've been able to get Android to fetch and process data this fast but ACE just looks like it's not been designed for real-time use in mind. First symptoms are that garbage collector kicks in like there's no tomorrow and totally kills the app. I'm visualizing data on a "sliding window" fashion so it's not like I'm expecting ACE to plot in real time hundreds of thousandths of points. I've taken a look at it and the onDraw for XYChart certainly allocates very heavily in cases where it looks

How to build the achartengine library after modification?

♀尐吖头ヾ 提交于 2019-11-28 11:52:29
问题 I modified the achartengine code to optimize it for myself but how do I build the lib in AndroidStudio? (I'm new in coding) I found a build.xml file, so it should be possible to run ant jar to create the lib, but how do I do that...? or is there a better way? 回答1: If anyone is still interested in this (in 2019) ... There are copies of achartengine on github, and the primary seems to be this: https://github.com/ddanny/achartengine The project has both build.xml and pom.xml files, so it should

AChartEngine And Android Studio

跟風遠走 提交于 2019-11-28 11:23:04
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 Eugene I am able to use this library in my Android Studio project, this topic explains how to add AChartEngine repo to your project. What I did: Added following to