I am using MPAndroidChart, I want to use
setDrawCircles(true);
setDrawValues(true);
only for selected value from line chart in mpchart libary. Means I do not want to draw label and circle on whole data set which can be easily achieved using above methods. I need to draw label and circle only for one value from chart. I have implemented onChartValueSelected and I do not know what should be done in onValueSelected I have tried many things. I achieved this in version 2.5.5 but now I am using version 3.0.0 and facing issue.
Related
I want this type of Gantt chart in android:
For this which library is important. I will try Achartengine library but not getting proper result . So suggest me an example or library.
I want to draw a horizontal bar in the exact time when it happens"...the problem is that i can't(or i don't know how) draw an horizontal bar with not continous values (like a bar of a Gantt chart)
It's possible to create this chart with Achartengine or Afreechart?
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 using the AchartEngine libraries to make a pie chart app. But I want to display two dimensional data like this
I can get nice standard pie charts but I know how to do the second dimension. Can anyone please help? The guys on the achartengine-google-support group say it's possible but I was redirected here for tech questions.
Many Thanks
If you take a look at the Budget Pie chart demo it shows you how to highlight a section of your pie chart (https://code.google.com/p/achartengine/source/browse/trunk/achartengine/demo/org/achartengine/chartdemo/demo/chart/BudgetPieChart.java). Take a look at "Project 1" below to see how this looks.
However there is no way to change the radius like you want to in your screenshot above. If you want to achieve this the easiest way would be to extend PieChart and copy over the draw method. In the draw method where it renders highlighted sections (if (seriesRenderer.isHighlighted()) ...) use a different radius instead of translating to an offset.
i am using AChartEngine library for android and i am drawing a chart using SalesComparisonChart class. but i noticed that the lines drawn does not reach the same value in number, it is drawn below the exact value like below in the photo . in category Oriental the value is 3608 and 4358 but the lines are below those values. Can someone help me ?
Please create an issue in the AChartEngine issue tracker.
Until this will be fixed you can use LineChart instead of the cubic line chart or you can add custom annotations.
series.addAnnotation("text", x, y);
I am using "achartengine" in android for chart, in that I want points on Y-axis as 0,0.5,1.0,1.5 instead of 0,1,2,3,4.
What can I do?
You can tweak the value you set using renderer.setYLabels() until it displays what you need.
Or you can add custom labels:
renderer.addYTextLabel(0.5, "0.5");