求个 achartengine demo1.1.0的源码(注意是源码,不是demo)

&&&&achartengine-1.1.0-demo-source
achartengine-1.1.0-demo-source
android,图表,achartengine 官方最新例子,增加了图表(包括饼图)的点击、触摸实践监听
若举报审核通过,可奖励20下载分
被举报人:
举报的资源分:
请选择类型
资源无法下载
资源无法使用
标题与实际内容不符
含有危害国家安全内容
含有反动色情等内容
含广告内容
版权问题,侵犯个人或公司的版权
*详细原因:
VIP下载&&免积分60元/年(1200次)
您可能还需要
移动开发下载排行org.eclipse.jdt.core.prefs
org.eclipse.jdt.ui.prefs
achartengine
AbstractChart.class
BarChart$Type.class
BarChart.class
BubbleChart.class
ClickableArea.class
CombinedXYChart.class
CubicLineChart.class
DialChart.class
DoughnutChart.class
LineChart.class
package.html
PieChart.class
PieMapper.class
PieSegment.class
PointStyle.class
RangeBarChart.class
RangeStackedBarChart.class
RoundChart.class
ScatterChart.class
TimeChart.class
XYChart.class
AbstractDemoChart.class
AverageCubicTemperatureChart.class
AverageTemperatureChart.class
BudgetDoughnutChart.class
BudgetPieChart.class
CombinedTemperatureChart.class
IDemoChart.class
MultipleTemperatureChart.class
PieChartBuilder$1.class
PieChartBuilder$2.class
PieChartBuilder.class
ProjectStatusBubbleChart.class
ProjectStatusChart.class
SalesBarChart.class
SalesComparisonChart.class
SalesGrowthChart.class
SalesStackedBarChart.class
ScatterChart.class
SensorValuesChart.class
TemperatureChart.class
TrigonometricFunctionsChart.class
WeightDialChart.class
XYChartBuilder$1.class
XYChartBuilder$2.class
XYChartBuilder$3.class
XYChartBuilder.class
XYChartBuilderBackup$1.class
XYChartBuilderBackup$2.class
XYChartBuilderBackup$3.class
XYChartBuilderBackup$4.class
XYChartBuilderBackup$5.class
XYChartBuilderBackup.class
BuildConfig.class
ChartDemo.class
GeneratedChartDemo.class
R$attr.class
R$drawable.class
R$id.class
R$layout.class
R$string.class
zoom-1.png
zoom_in.png
zoom_out.png
CategorySeries.class
MultipleCategorySeries.class
package.html
Point.class
RangeCategorySeries.class
SeriesSelection.class
TimeSeries.class
XYMultipleSeriesDataset.class
XYSeries.class
XYValueSeries.class
BasicStroke.class
DefaultRenderer.class
DialRenderer$Type.class
DialRenderer.class
package.html
SimpleSeriesRenderer.class
XYMultipleSeriesRenderer$Orientation.class
XYMultipleSeriesRenderer.class
XYSeriesRenderer.class
AbstractTool.class
FitZoom.class
PanListener.class
Zoom.class
ZoomEvent.class
ZoomListener.class
IndexXYMap.class
MathHelper.class
package.html
XYEntry.class
ChartFactory.class
GraphicalActivity.class
GraphicalView$1.class
GraphicalView$2.class
GraphicalView.class
ITouchHandler.class
package.html
TouchHandler.class
TouchHandlerOld.class
annotations-28e0d440ffae02fd40b6eb8dc327994c.jar
drawable-hdpi
achartengine.png
drawable-ldpi
achartengine.png
drawable-mdpi
achartengine.png
AndroidManifest.xml
classes.dex
jarlist.cache
resources.ap_
表格-带源码.apk
achartengine
.classpath
LICENSE-2.0.txt
achartengine
android.jar
junit-3.8.1.jar
drawable-hdpi
achartengine.png
drawable-ldpi
achartengine.png
drawable-mdpi
achartengine.png
xy_chart.xml
strings.xml
achartengine
package.html
zoom-1.png
zoom_in.png
zoom_out.png
package.html
package.html
package.html
package.html
.classpath
AndroidManifest.xml
project.properties
* Copyright (C)
SC 4ViewSoft SRL
* Licensed under the Apache License, Version 2.0 (the &License&);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an &AS IS& BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
package org.achartengine.chartdemo.demo.
import java.util.D
import java.util.L
import org.achartengine.chart.PointS
import org.achartengine.model.CategoryS
import org.achartengine.model.MultipleCategoryS
import org.achartengine.model.TimeS
import org.achartengine.model.XYMultipleSeriesD
import org.achartengine.model.XYS
import org.achartengine.renderer.DefaultR
import org.achartengine.renderer.SimpleSeriesR
import org.achartengine.renderer.XYMultipleSeriesR
import org.achartengine.renderer.XYSeriesR
* An abstract class for the demo charts to extend. It contains some methods for
* building datasets and renderers.
public abstract class AbstractDemoChart implements IDemoChart {
* Builds an XY multiple dataset using the provided values.
* 构建一个XY多个数据集使用提供的值。
* @param titles the series titles 线的标题也就是每条线的名字
* @param xValues the values for the X axis xValues X轴的值 每条线对应的X轴值
* @param yValues the values for the Y axis yValues Y轴的值 每条线对应的Y轴值
* @return the XY multiple dataset XY多个数据集
protected XYMultipleSeriesDataset buildDataset(String[] titles, List&double[]& xValues,
List&double[]& yValues) {
XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset();
addXYSeries(dataset, titles, xValues, yValues, 0);
* @param dataset XY多个数据集
* @param titles 线的标题也就是每条线的名字
* @param xValues X轴的值 每条线对应的X轴值
* @param yValues 轴的值 每条线对应的X轴值
* @param scale
public void addXYSeries(XYMultipleSeriesDataset dataset, String[] titles, List&double[]& xValues,
List&double[]& yValues, int scale) {
int length = titles.
for (int i = 0; i & i++) {
XYSeries series = new XYSeries(titles[i], scale);
double[] xV = xValues.get(i);
double[] yV = yValues.get(i);
int seriesLength = xV.
for (int k = 0; k & seriesL k++) {
series.add(xV[k], yV[k]);
dataset.addSeries(series);
* Builds an XY multiple series renderer.
* 构建一个XY系列多个渲染器。
* @param colors the series rendering colors 系列呈现的颜色 也就是每条线的颜色值
* @param styles the series point styles 系列的风格 也就是每条线上的点的风格,是圆形的还是方形的还是其他等
* @return the XY multiple series renderers XY系列多个渲染器
protected XYMultipleSeriesRenderer buildRenderer(int[] colors, PointStyle[] styles) {
XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
setRenderer(renderer, colors, styles);
protected void setRenderer(XYMultipleSeriesRenderer renderer, int[] colors, PointStyle[] styles) {
renderer.setAxisTitleTextSize(16);
renderer.setChartTitleTextSize(20);
renderer.setLabelsTextSize(15);
renderer.setLegendTextSize(15);
renderer.setPointSize(5f);
renderer.setMargins(new int[] { 20, 30, 15, 20 });
int length = colors.
for (int i = 0; i & i++) {
XYSeriesRenderer r = new XYSeriesRenderer();
r.setColor(colors[i]);
r.setPointStyle(styles[i]);
renderer.addSeriesRenderer(r);
* Sets a few of the series renderer settings.
* @param renderer the renderer to set the properties to 多个XY系列渲染器。设置 buildRenderer(68行代码)
* @param title the chart title 表格的Title &Average temperature&
* @param xTitle the title for the X axis X轴名字 &Month&
* @param yTitle the title for the Y axis Y轴名字 &Temperature&,&Vacation&
* @param xMin the minimum value on the X axis X轴上的最小值
* @param xMax the maximum value on the X axis X轴上的最大值
* @param yMin the minimum value on the Y axis Y轴上的最小值
* @param yMax the maximum value on the Y axis Y轴上的最大值
* @param axesColor the axes color axesColor轴的颜色 也就是X轴的颜色值
* @param labelsColor the labels color labelsColor标签的颜色 也就是图标中文字的颜色 例子中的 &Average temperature&, &Month&, &Temperature&,&Vacation&,
protected void setChartSettings(XYMultipleSeriesRenderer renderer, String title, String xTitle,
String yTitle, double xMin, double xMax, double yMin, double yMax, int axesColor,
int labelsColor) {
renderer.setChartTitle(title);
renderer.setXTitle(xTitle);
renderer.setYTitle(yTitle);
renderer.setXAxisMin(xMin);
renderer.setXAxisMax(xMax);
renderer.setYAxisMin(yMin);
renderer.setYAxisMax(yMax);
renderer.setAxesColor(axesColor);
renderer.setLabelsColor(labelsColor);
* Builds an XY multiple time dataset using the provided values.
* @param titles the series titles
* @param xValues the values for the X axis
* @param yValues the values for the Y axis
* @return the XY multiple time dataset
protected XYMultipleSeriesDataset buildDateDataset(String[] titles, List&Date[]& xValues,
List&double[]& yValues) {
XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset();
int length = titles.
for (int i = 0; i & i++) {
TimeSeries series = new TimeSeries(titles[i]);
Date[] xV = xValues.get(i);
double[] yV = yValues.get(i);
int seriesLength = xV.
for (int k = 0; k & seriesL k++) {
series.add(xV[k], yV[k]);
dataset.addSeries(series);
* Builds a category series using the provided values.
* @param titles the series titles
* @param values the values
* @return the category series
protected CategorySeries buildCategoryDataset(String title, double[] values) {
CategorySeries series = new CategorySeries(title);
int k = 0;
for (double value : values) {
series.add(&Project & + ++k, value);
* Builds a multiple category series using the provided values.
* @param titles the series titles
* @param values the values
* @return the category series
protected MultipleCategorySeries buildMultipleCategoryDataset(String title,
List&String[]& titles, List&double[]& values) {
MultipleCategorySeries series = new MultipleCategorySeries(title);
int k = 0;
for (double[] value : values) {
series.add(2007 + k + &&, titles.get(k), value);
* Builds a category renderer to use the provided colors.
* @param colors the colors
* @return the category renderer
protected DefaultRenderer buildCategoryRenderer(int[] colors) {
DefaultRenderer renderer = new DefaultRenderer();
renderer.setLabelsTextSize(15);
renderer.setLegendTextSize(15);
renderer.setMargins(new int[] { 20, 30, 15, 0 });
for (int color : colors) {
SimpleSeriesRenderer r = new SimpleSeriesRenderer();
r.setColor(color);
renderer.addSeriesRenderer(r);
* Builds a bar multiple series dataset using the provided values.
* @param titles the series titles
* @param values the values
* @return the XY multiple bar dataset
protected XYMultipleSeriesDataset buildBarDataset(String[] titles, List&double[]& values) {
XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset();
int length = titles.
for (int i = 0; i & i++) {
CategorySeries series = new CategorySeries(titles[i]);
double[] v = values.get(i);
int seriesLength = v.
for (int k = 0; k & seriesL k++) {
series.add(v[k]);
dataset.addSeries(series.toXYSeries());
* Builds a bar multiple series renderer to use the provided colors.
* @param colors the series renderers colors
* @return the bar multiple series renderer
protected XYMultipleSeriesRenderer buildBarRenderer(int[] colors) {
XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
renderer.setAxisTitleTextSize(16);
renderer.setChartTitleTextSize(20);
renderer.setLabelsTextSize(15);
renderer.setLegendTextSize(15);
int length = colors.
for (int i = 0; i & i++) {
SimpleSeriesRenderer r = new SimpleSeriesRenderer();
r.setColor(colors[i]);
renderer.addSeriesRenderer(r);
Copyright(C)
OKBASE.NET All Rights Reserved 好库网 版权所有&&&&Achartengine 1.0.0&1.1.0&demo源码
Achartengine 1.0.0&1.1.0&demo源码
我自己项目需要下载了achartengine 两个版本的源码和demo来学习也提供给各位有需要的朋友
若举报审核通过,可奖励20下载分
被举报人:
举报的资源分:
请选择类型
资源无法下载
资源无法使用
标题与实际内容不符
含有危害国家安全内容
含有反动色情等内容
含广告内容
版权问题,侵犯个人或公司的版权
*详细原因:
VIP下载&&免积分60元/年(1200次)
您可能还需要
移动开发下载排行下次自动登录
现在的位置:
& 综合 & 正文
AChartEngine小Demo,肯定能运行的。
照着网上的源码一句一句敲下来的,终于可以运行了。
,导入到工程。
可能出现java.lang.NoClassDefFoundError: org.achartengine.model.XYMultipleSeriesDataset这个问题,
package com.example.
import java.util.ArrayL
import java.util.L
import org.achartengine.ChartF
import org.achartengine.chart.PointS
import org.achartengine.model.XYMultipleSeriesD
import org.achartengine.model.XYS
import org.achartengine.renderer.XYMultipleSeriesR
import org.achartengine.renderer.XYSeriesR
import android.os.B
import android.app.A
import android.graphics.C
import android.view.M
import android.view.V
public class MainActivity extends Activity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
String[] titles = new String[]{"First" ,"Second"};
List&double[]& x = new ArrayList&double[]&();
List&double[]& y = new ArrayList&double[]&();
x.add(new double[]{1 ,3 ,5 ,7 ,9 ,11});
x.add(new double[]{0 ,2 ,4 ,6 ,8 ,10});
y.add(new double[]{3 ,14 ,5 ,30 ,20 ,25});
y.add(new double[]{18 ,9 ,21 ,15 ,10 ,6});
XYMultipleSeriesDataset dataset = buildDataset(titles, x, y);
int []colors = new int[]{Color.BLUE ,Color.GREEN};
PointStyle[] styles = new PointStyle[]{PointStyle.CIRCLE ,PointStyle.DIAMOND};
XYMultipleSeriesRenderer renderer = buildRenderer(colors, styles, true);
setChartSetting(renderer, "Line Chart Demo", "X", "Y", -1, 12, 0, 35, Color.WHITE, Color.WHITE);
View Chart = ChartFactory.getLineChartView(this , dataset, renderer);
setContentView(Chart);
protected XYMultipleSeriesDataset buildDataset(String[] titles,
List&double[]& xValues ,List&double[]& yValues){
XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset();
int length = titles.
for(int i = 0 ;i &i++){
XYSeries series = new XYSeries(titles[i]);
double [] xV = xValues.get(i);
double [] yV = yValues.get(i);
int seriesLength = xV.
for(int k = 0 ;k & seriesLk++){
series.add(xV[k], yV[k]);
dataset.addSeries(series);
protected XYMultipleSeriesRenderer buildRenderer(int[] colors ,
PointStyle[] styles ,boolean fill){
XYMultipleSeriesRenderer render = new XYMultipleSeriesRenderer();
int length = colors.
for(int i = 0 ;i &i++){
XYSeriesRenderer r = new XYSeriesRenderer();
r.setColor(colors[i]);
r.setPointStyle(styles[i]);
r.setFillPoints(fill);
render.addSeriesRenderer(r);
protected void setChartSetting(XYMultipleSeriesRenderer render ,String title ,
String xTitle ,String yTitle ,double xMin ,double xMax ,double yMin ,
double yMax ,int axesColor ,int labelsColor){
render.setChartTitle(title);
render.setXTitle(xTitle);
render.setYTitle(yTitle);
render.setXAxisMin(xMin);
render.setXAxisMax(xMax);
render.setYAxisMin(yMin);
render.setYAxisMax(yMax);
render.setAxesColor(axesColor);
render.setLabelsColor(labelsColor);
public boolean onCreateOptionsMenu(Menu menu) {
// I this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
&&&&推荐文章:
【上篇】【下篇】网盘高速下载器破解版附源码|网盘链接高速下载器(成品+源码)1.0 全能破解版【支持绝大多数网盘】-东坡下载
东坡下载:内容最丰富最安全的下载站!
→ 网盘链接高速下载器(成品+源码) 1.0 全能破解版【支持绝大多数网盘】
在网盘上面我们可以下载很多有用的资源,但是往往不开通会员的话,速度就比较慢,而且就算我们开通超级会员,一个网盘可以,两个、三个、四个网盘都开通的话,就吃不消了,这款网盘链接高速下载器就可以帮助你下载网盘资源的时候速度达到svip的下载速度,支持市面上面绝大多数网盘哦。网盘链接高速下载器支持的网盘不限速下载 网盘链接器百度网盘360云盘腾讯微云载微盘坚果云cc云盘金蝶云盘爱快网盘183网盘25网盘即可网盘拾盘贵族网盘极速网盘网盘链接高速下载器使用方法1、找到网盘下载地址,然后解析如图所示,点击下载,选择好保存目录即可看看下载的进度吧。
安卓官方手机版
IOS官方手机版
网盘链接高速下载器(成品+源码)截图
网盘链接高速下载器(成品+源码) 1.0 全能破解版【支持绝大多数网盘】
本类最新软件
本类软件推荐
344KB / 09-09 / 1.0 免费最新版 【香港版】
3.3M / 09-08 / 1.0.32 官方版【迅雷VIP天天领】
3.6M / 09-30 / 2.1.0.0 官方正式版
9.7M / 10-17 / 2.3.2.0官方最新版
292KB / 05-27 / 1.0 绿色免费版
本类软件排行
装机必备软件
网页下载邮件加速
请简要描述您遇到的错误,我们将尽快予以修正。
轮坛转帖HTML方式
轮坛转帖UBB方式}

我要回帖

更多关于 achartengine api 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信