I have data points offline in a file where i need to plot it in graph
I have tried AChartEngine, AndroidPlot but I needed in this sequence in the image below, How to achieveit, please suggest.
Used Chart Engine, created custom x & Y axis made 4 fragments and added the graphs to display. It is done.
Related
I am trying to make a simple smooth line chart which show the X axis as date-time on bottom and Y axis as normal left side. I just started using MPAndroidChart API and its example app in Git. In the example Line chart I am not able to find option to change X axis labels to show on bottom instead of top as show currently.
Just like:
Also is there a way to handle date-time data for X axis values ?
Also I tried my hand on Androidplot API but to make the line smooth there I need to make changes in library code which is not compiling at all in my Eclipse and giving errors. Also in Androidplot I did not find an option to show popup with data once I click on line chart.
So if anyone know how to make a smooth line chart using Androidplot API without modifying its library code and how to bring small popup with data in Androidplot API please reply.
// XAxis settings
graph.getXAxis().setPosition(XAxis.XAxisPosition.BOTTOM);
graph.getXAxis().setLabelsToSkip(0);
// and
// make the line smooth
graph.getLineData().getDataSets().get(0).lineDataSet.setDrawCubic(true);
Refer this:
http://wptrafficanalyzer.in/blog/android-drawing-line-chart-using-achartengine/
for smooth curve lines please refer this:
How to make line with rounded (smooth) corners with AndroidPlot
Hope this may help you.
AChartEngine is a charting library for Android applications. Using AChartEngine library, we can plot various charts like line chart, area chart, pie chart, time chart, bubble chart etc.
I'm trying to create a graph on android using the android graphview library.
1)I need to plot points on the graph (Currently, the options are LineGraph and BarGraph) however i wish to only plot the points without drawing a line.
2) Change the positioning of the X axis and it's labels(such that it shows on the top and not the bottom).
I'm looking through the API but cannot find a way to do these things. Would really appreciate if anyone could help out!
it is not possible do to exactly that what you want with android GraphView but should not be hard to modify the library to do so, because the features already exists.
LineGraphView can draw data points.
take a look at the methods
setDrawDataPoints
setDataPointsRadius
BarGraphView can draw the labels on top of the bar
take a look at the method
setDrawValuesOnTop
In my android application i have developed Graph functionality using aChartEngine android.Every thing fine .I need to draw a circle on the two time series colliding point in graph.Below i show the screen hot of the application.Please help me
One thing is sure here: AChartEngine won't provide you APIs for detecting the intersection point between the 2 lines.
If you can compute that yourself then you could add a third series with one single point that would render the intersection point. You will have to set a point style for this series such as you can see it better.
The graph I am trying to create is a line graph with six separate functions, all of which need to be easily shown and hidden from the graph and the legend. It also needs to use dual Y-axis'. The reason for the dual axis is that 3 of the functions have a very small range of Y-values, and the other 3 functions have a very large range of Y-values.
I tried to replicate an example in excel:
Above shows how my graph is currently set up. The values of the pink line range from [-300,300], while the values of the blue line range from [-50,50].
I would like the graph to be drawn like it is shown below:
I am currently using the GraphView library, but cannot find any support for dual Y-axis.
AChartEngine is a good charting Library. http://code.google.com/p/achartengine/
I am pretty sure it can do this.
Is there a way to have a View in my XML file which builds graphs, based on different input from the user? All the graphs should be sin/cos waves....I have asked this on here before but the responses I received don't seem to cover Sin/Cos waves, just simple line graphs. I was told about achartengine, and Google Chart Tools.
You can download the AChartEngine demo here and give it a try.
There is this part of the demo that does exactly what you need.
If you already have the function for the data you're trying to display, you can use the Canvas to plot the data points you want:
Canvas Tutorial: http://www.tutorialforandroid.com/2009/06/drawing-with-canvas-in-android.html