teflondun / achartengine Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/achartengine
Automatically exported from code.google.com/p/achartengine
Hello!
I found you library some days ago when i was looking for a chart library for
android. i tried it in a small project and i liked it at once.
Espacially the Zoom feature looks good. The only thing I miss is the
possibility to zoom with "pinch to zoom", not only with the buttons.
Do you have planned something like this?
Regards,
Harald
Original issue reported on code.google.com by [email protected]
on 16 Dec 2010 at 9:59
What steps will reproduce the problem?
1. hold phone sideways
2. load a graph
3.
What is the expected output? What do you see instead? I expect a graph but
instead I get force close
Please provide a source code snippet that we can use to replicate the issue.
String[] titles = new String[] { "" };
int[] colors = new int[] { Color.BLUE };
PointStyle[] styles = new PointStyle[] { PointStyle.POINT };
XYMultipleSeriesRenderer renderer = buildRenderer(colors, styles);
// try catch to keep it from crashing if values are null
try{
setChartSettings(renderer, "", "Time", Units, dateValues[0].getTime(),
dateValues[dateValues.length - 1].getTime() , MIN - .2, MAX + .2, Color.GRAY, Color.LTGRAY);
} catch (Exception e) {
e.printStackTrace();
}
renderer.setYLabels(8);
renderer.setXLabels(4);
Intent intent = ChartFactory.getTimeChartIntent(this, buildDateDataset(titles, dates, values),
renderer, "MM/dd hh:mm aa");
startActivity(intent);
What version of the product binary library are you using? 5.0
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 18 Dec 2010 at 5:17
In GraphicView, line 238,
(mRenderer.isPanXEnabled() || mRenderer.isZoomYEnabled() ||
mRenderer.isZoomXEnabled() || mRenderer
.isZoomYEnabled())
the secondary condition should be isPanXEnable().
/Dennis
Original issue reported on code.google.com by [email protected]
on 7 Feb 2011 at 3:04
It would be nice to have some kind of spline curves (smoothed curves) in
addition to (edgy) line charts.
would need some kind of interpolation.
best regards, achim
Original issue reported on code.google.com by [email protected]
on 25 Jan 2011 at 9:09
Is it possible to get a callback on pinch zoom ?
When my chart zooms I turn on values at point to give that extra level of
detail and need to do it when they pinch to zoom in/out to turn it on & off
again.
Original issue reported on code.google.com by [email protected]
on 24 Jan 2011 at 3:42
What steps will reproduce the problem?
1. Display a MultipleXY Line graph
2. Zoom in
3. Pan fully to the left
4. Try to pan to the right
What is the expected output? What do you see instead?
I expect the data to pan to the right, but that doesn't work. Before I pan
fully to the left, I can also pan to the right..
What version of the product binary library are you using?
svn rev 97
Please provide any additional information below.
- I have set only X-panning and have set a limit for panning. The limit works,
but stops working when panning to the left (to zero).
I don't know if I'm doing something wrong, or this is a bug..
Original issue reported on code.google.com by [email protected]
on 22 Nov 2010 at 3:26
I created a chart, and because I would like to have the background white, I was
wondering if it was possible to either have the labels moved slighly to the
left, so they no longer appear in the chart, but only left to it, or have an
option to change the background color beyond the chart area.
Other than that very good library created here:)
Original issue reported on code.google.com by [email protected]
on 8 Feb 2011 at 10:49
What steps will reproduce the problem?
1. build a category data set with an array of doubles where some of the values
in the array are 0.0
2.
3.
What is the expected output? What do you see instead?
Text labels are stacked on top of each other
Please provide a source code snippet that we can use to replicate the issue.
double[] values = new double[0.0, 0.0, 1.0, 2.0, 0.0];
CategorySeries series = buildCategoryDataset("Voting Results", values, answers);
What version of the product binary library are you using?
0.5.0
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Dec 2010 at 4:28
I need to change the underfill color per point on my graph.
Currently I am getting around this by doing multiple series and cleverly
placing them however an inbuilt feature would be great.
Original issue reported on code.google.com by [email protected]
on 24 Jan 2011 at 3:41
Looking at your code, this shouldn't be that difficult
Original issue reported on code.google.com by [email protected]
on 12 Dec 2010 at 8:00
It would be super helpful if this were registered in a maven repo somewhere.
Original issue reported on code.google.com by [email protected]
on 12 Mar 2010 at 4:01
What steps will reproduce the problem?
1. draw a bar chart with poitive & negative values & display values
What is the expected output? What do you see instead?
values put on top of positive bars, negative values put below negative values.
Instead the negative values are rendered unreadable in the bars, see attached
snapshot.
What version of the product binary library are you using?
0.5
Original issue reported on code.google.com by [email protected]
on 18 Nov 2010 at 6:53
Attachments:
we are getting the data messed up , so we are not able to refine it ,
zooming & scrolling will take of it
we are currently using 0.4.0
Waiting for reply
Original issue reported on code.google.com by [email protected]
on 27 Jan 2010 at 6:59
if you use a lot of textlabels on x-axis, they are rendered on top of each
other. It would be nice to have a mehtod to rotate them (e.g. for 90 degrees in
the first step, free rotation in future releases)
Original issue reported on code.google.com by [email protected]
on 18 Nov 2010 at 6:46
Enhancement request for the legend to only be as large as it needs to be.
Currently it is either controlled directly by the end-user or defaulted to 1/5
of the chart's height.
I directly include achartengine's source code in my app's source code, so if I
end up implementing this, I'll refer you to my solution.
Original issue reported on code.google.com by [email protected]
on 13 Jan 2011 at 6:16
When you have a graph and you are able to pan, the data is visible on the left
side of the axis. I don't think that should happen.
Original issue reported on code.google.com by [email protected]
on 17 Nov 2010 at 8:53
What steps will reproduce the problem?
1. build a simple pie-chart with a 2 row big legend (for example 5 entries)
2. try to view the chartintent on wilfire emulator (320 ร 240 px)
What is the expected output? What do you see instead?
there are 2 possibities
1. the chart is shrinked that small that all data is visible
2. there must be a vertical scroll bar to view the data at the end of the chart
What version of the product binary library are you using?
Version 0.5
Original issue reported on code.google.com by [email protected]
on 4 Jan 2011 at 9:25
I'm so sorry i cannot check out the source with eclipse form
Http://achartengine.googlecode.com/svn/trunk/ achartengine-read-only.
Please fix it ! Could you send it to my email? [email protected]
THX.
Original issue reported on code.google.com by [email protected]
on 30 Mar 2010 at 12:31
What steps will reproduce the problem?
1. Create a chart
2. Display chart with startActivity(ChartFactory.getLineChartIntent(this,
dataset, renderer));
3. Observe created chart
What is the expected output? What do you see instead?
The titlebar contains my application's overall title with no way to set the
title.
Please provide a source code snippet that we can use to replicate the issue.
Please see above
What version of the product binary library are you using?
0.3.0
Please provide any additional information below.
Original issue reported on code.google.com by evancharlton
on 20 May 2009 at 10:10
I have several charts on my display at one time. They are each added to a
separate LinearLayout, the first two weighted (equally), the 3rd is set to a
fixed size of 100dip:
<linearlayout android:orientation="vertical">
<linearlayout id="chart1" android:layout_weight="1" />
<linearlayout id="chart2" android:layout_weight="1" />
<linearlayout id="chart3" android:layout_height="100dp" />
</linearlayout>
i programmatically add the View to each of the linearLayout elements.
What is the expected output? What do you see instead?
I expect to be able to see the full chart, including the key & all axis text.
for the 3rd chart, and the first two (if they have > 1 line of key text), the
bottom of the chart is cropped.
Please provide a source code snippet that we can use to replicate the issue.
What version of the product binary library are you using?
tested both on v0.5 and repository revision r56
Please provide any additional information below.
in the attached screenshot, the second chart (one with green line) should have
three rows in its key/legend, but it is only showing one.
the last chart ('computer inaccuracy') is missing the key/legend altogether.
Original issue reported on code.google.com by [email protected]
on 11 Oct 2010 at 1:03
Attachments:
Is it possible to convert a chart to a bitmap file? It would be very helpful!
Thanks.
Original issue reported on code.google.com by [email protected]
on 4 Jan 2011 at 7:59
Can minimum/maximum zoom limits been implemented to prevent users from zooming
in to much and zooming out beyond the intended range.
Original issue reported on code.google.com by [email protected]
on 6 Jan 2011 at 4:46
I want to draw a line in a bar chart. Currently, there is no way to mix a line
chart with a bar chart. Can you provide a way to mix line chart with bar chart ?
Thanks.
Original issue reported on code.google.com by [email protected]
on 17 Nov 2010 at 7:56
What steps will reproduce the problem?
1. Modified ChartDemo's BudgetPieChart.java to change data legend title
from "Project" to "Events".
2. The legend shows "Project-1 ... n, no matter what title you use in the
call to buildCategoryDataset at line 55.
What is the expected output? I expect to be able to change the legend with
the dataset values.
What do you see instead? The legend for the data series is always "Project-1 ..
n.
Please provide a source code snippet that we can use to replicate the issue.
Line 55 was:
return ChartFactory.getPieChartIntent(context, buildCategoryDataset("Project budget", values), renderer);
I changed to:
return ChartFactory.getPieChartIntent(context, buildCategoryDataset("Events Percent", values), renderer);
What version of the product binary library are you using?
0.5.0
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 9 Jan 2011 at 4:31
What steps will reproduce the problem?
I have a Scrollview with some other views inside and a chart at the top.
When I scroll down and the chart gets out of screen at the top, it suddenly
shrinks, because it wants to fit in the remaining space.
I looked at the code and changed the following thing to fix it for me:
In GraphicalView.java, Method onDraw at the beginning
canvas.getClipBounds(mRect);
int top = mRect.top;
int left = mRect.left;
int width = mRect.width();
int height = mRect.height();
to
int top = 0;
int left = 0;
int width = getMeasuredWidth();
int height = getMeasuredHeight();
Now the chart just scrolls out as expected.
Cheers,
Harald
Original issue reported on code.google.com by [email protected]
on 18 Dec 2010 at 7:11
Hello!
Our project recently switched to achartengine. I just spot an issue with
Android 1.5:
Could not find method android.view.MotionEvent.getX, referenced from method
org.achartengine.GraphicalView.handleTouch
E/AndroidRuntime( 2946): java.lang.VerifyError: org.achartengine.GraphicalView
E/AndroidRuntime( 2946): at
org.achartengine.ChartFactory.getBarChartView(ChartFactory.java:144)
Using achartengine-0.6.0.r140.jar
Is there a way to avoid this?
Or maybe achartengine explicitely does not support Android 1.5?
Thank you!
Downstream issue: https://code.google.com/p/ankidroid/issues/detail?id=422
Original issue reported on code.google.com by [email protected]
on 16 Feb 2011 at 3:19
When panning, you can keep on panning, beyond the limits. It should probably be
better to set limits for panning.
Original issue reported on code.google.com by [email protected]
on 17 Nov 2010 at 8:50
You need to replace ArrayList<Double> in XYSeries.java on TreeMap<Double,
Double> and do every consequent action.
The only visible part of chart should be drawn. Now it paints all the chart, no
matter if you can only see 5% of the chart by zooming.
I replaced array lists by maps. Before it started to work slow after 2000
points. Now no matter how many points there are there, it works as same as in
the beginning. Here's the code http://pastebin.com/JHnaLUsB
it's not perfect, but you can get the main idea.
Original issue reported on code.google.com by [email protected]
on 31 Jan 2011 at 9:09
I like your new pan/zoom functions! I don't know what is on your todo
list, but I like the option to only zoom horizontal (or vertical for
other people). This is because I have a lot of data I want to display,
wherein the max/min Y values are staying the same, but the x-ax is
getting more points, the more time the app is recording.
I fixed this manually, by just removing the zoomparts and pan parts
for the y-axis, but maybe more people would like this function.
Original issue reported on code.google.com by [email protected]
on 17 Nov 2010 at 8:48
Make chart axis labels not overlap with the tick lines or the axis lines.
Add some configuration parameters for this.
Original issue reported on code.google.com by [email protected]
on 1 Oct 2010 at 9:52
When you have a a Y value with 4 or more digits, the values on the left side of
the Y-axis will overlap the Y-label or fall of the screen.
Adding a option to set the margins (or do it automatically) will fix this.
Original issue reported on code.google.com by [email protected]
on 18 Nov 2010 at 7:56
What steps will reproduce the problem?
1. Attempt to make a barchart with only one series
2. It doesn't work- get error and must force stop
3.
What is the expected output? What do you see instead?
Please provide a source code snippet that we can use to replicate the issue.
must use XYMultipleSeriesDataset - makeBarChartIntent depends on it.
What version of the product binary library are you using?
0.5
Please provide any additional information below.
Thanks,
Eric
Original issue reported on code.google.com by [email protected]
on 24 Aug 2010 at 8:11
What steps will reproduce the problem?
1. Add <uses-sdk android:minSdkVersion="4"/> to AndroidManifest.xml in the Demo
program and any app use this api.
2. Install the Demo apk
3. Run the Demo apk
What is the expected output? What do you see instead?
Without <uses-sdk android:minSdkVersion="4"/> in AndroidManifest.xml, the
labels look normal. When add this line, the label becomes tiny.
Please provide a source code snippet that we can use to replicate the issue.
I downloaded the Demo code and insert <uses-sdk android:minSdkVersion="4"/> in
AndroidManifest.xml. This is the only change.
What version of the product binary library are you using?
Tested on the 1.5 and 2.2
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 29 Jan 2011 at 2:15
Can the
Zoom In
Zoom Out
Zoom Reset
Functions be made public interfaces so I can call them from my own themed,
rendered and placed buttons.
Original issue reported on code.google.com by [email protected]
on 6 Jan 2011 at 4:45
What steps will reproduce the problem?
1. Pass any integer x > 720 or x < -720 and getAngle()'s value will not be
between 0-360
example:
passing 1080 will return 720
Please provide a source code snippet that we can use to replicate the issue.
From org.achartengine.util.MathHelper.java:
public static int getAngle(int angle) {
if (angle < 0) {
return ANGLE + angle;
}
if (angle > ANGLE) {
return angle - ANGLE;
}
return angle;
}
What version of the product binary library are you using?
0.5.0
Please provide any additional information below.
This can be fixed with:
public static int getAngle(int angle) {
return angle % ANGLE;
}
Original issue reported on code.google.com by [email protected]
on 28 Jul 2010 at 3:12
Besides the zoom in/zoom out buttons, a zoom reset button would be handy.
Original issue reported on code.google.com by [email protected]
on 17 Nov 2010 at 8:52
Support for null values should be added such as line or bar charts should not
be rendered for these.
Original issue reported on code.google.com by [email protected]
on 20 Oct 2010 at 9:08
A nice function would be to be able to click and automatically zoom in on that
point.
Original issue reported on code.google.com by [email protected]
on 17 Nov 2010 at 8:51
The charts look 1E6 times better with anti-aliasing enabled. Here's a patch.
The patch can be applied from within the directory trunk/achartengine with
the command:
patch -p1 < anti_aliasing.patch
Original issue reported on code.google.com by kostmo
on 8 Dec 2009 at 6:20
Attachments:
with the new, zoom-enabled library, the GraphicalView does not call the super's
implementation of onTouchEvent, which causes a loss of functionality.
For example, I want my application to launch an activity if the chart is
selected, but using the new library, this event will be caught by your code.
even if pan/zoom is disabled, I cannot use a touch/click/select event.
Please add:
return super.onTouchEvent(event)
instead of 'return true', so the default behavior persists. It might be good to
skip the above call if pan/zoom are enabled (i.e. return true in the if()
block).
Original issue reported on code.google.com by [email protected]
on 25 Oct 2010 at 5:26
The key at the bottom of the chart should show the 'style' of the data series
as well (i.e. circle/square, etc).
Original issue reported on code.google.com by [email protected]
on 10 Oct 2010 at 8:58
Add a parameter for specifying the spacing between bars in bar charts.
Original issue reported on code.google.com by [email protected]
on 1 Oct 2010 at 9:46
What steps will reproduce the problem?
1. Create any graph with AChartEngine
2. Use another view on top of this graph ( I had a sliding drawer, from
miscWidget on GoogleCode )
3. Move the sliding drawer
What is the expected output? What do you see instead?
The size of the graph was not the correct one.
Please provide a source code snippet that we can use to replicate the
issue.
What version of the product binary library are you using?
Hum.. The last one ??
Please provide any additional information below.
Actually, I kind of fix it :
Changing graphicalView from :
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
canvas.getClipBounds(mRect);
int top = mRect.top;
int left = mRect.left;
int width = mRect.width();
int height = mRect.height();
mChart.draw(canvas, left, top, width, height);
}
To :
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
canvas.getClipBounds(mRect);
int top = mRect.top;
int left = mRect.left;
//int width = mRect.width();
//int height = mRect.height();
int width = canvas.getWidth();
int height = canvas.getHeight();
mChart.draw(canvas, left, top, width, height);
}
Note that it implies that the full graph view will be drawned every time,
even if half of it is hidden. But I don't think it is such a big deal...
Original issue reported on code.google.com by [email protected]
on 16 May 2010 at 3:12
Bug is in conversion long -> double -> long. The first one is in
TimeSeries.add(), the second one stays in TimeChart.drawXLabels().
Because of trimming of numbers sometimes it is impossible to restore Date
class to draw labels.
Original issue reported on code.google.com by [email protected]
on 1 Jun 2010 at 8:16
This library is actually quite good. I initially discounted it because I saw
the screenshots and it looked ugly. After downloading it and playing with some
of the options, you can actually make some pretty eye-popping graphs out of
this thing. And the API is simple to figure out.
If you update your screenshots, more people will use this awesome library!
Thanks for putting this together.
Original issue reported on code.google.com by [email protected]
on 13 Jan 2011 at 8:08
What steps will reproduce the problem?
1. extend Activity not ListActivity
2. create a Barchart intent with 5 different SERIES
What is the expected output? What do you see instead?
I expected 5 different Bars with a width as seen in the examples, but i got
bars which are more equal to lines than bars.
Please provide a source code snippet that we can use to replicate the issue.
private static final int SERIES_NR = 5;
//in dataset
for (int i = 0; i < SERIES_NR; i++) {
CategorySeries series = new CategorySeries("SeriesName");
.......
series.add(value);
dataset.addSeries(series.toXYSeries());
What version of the product binary library are you using?
Current Version in Trunk
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 17 Dec 2010 at 10:43
Chart titles should be above the chart. Instead they currently are inside the
plot area (i.e. the top of the title is at the same level as the top of the Y
axis).
Original issue reported on code.google.com by [email protected]
on 14 Dec 2010 at 11:15
The back ground is white,so I have to change the grid color ,but the I can't
get it in the API.
Original issue reported on code.google.com by [email protected]
on 17 Jan 2011 at 7:36
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please provide a source code snippet that we can use to replicate the issue.
What version of the product binary library are you using?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 26 Jan 2011 at 1:02
Hi, thanks for sharing this library to android world,
I have one problem when use pie chart today.
In the source code of AbstractChart line 15 in drawLegend()
I saw , currentY += 15;
this is not right cause I will set the font size large than 15px in high
resolution device, if I do so, for example set to 32px, the legend text will
overlap each other.
I think the increase of currentY should depends on legend text size not 15,
thanks.
/Dennis
Original issue reported on code.google.com by [email protected]
on 18 Jan 2011 at 4:27
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.