An Android API for creating dynamic and static charts.
Questions tagged [androidplot]
352 questions
3
votes
3 answers
ProGuard configuration for AndroidPlot
Since building a release version of my app with ProGuard enabled, my plot style is reset to the default and I see many warnings in Logcat informing me of unsupported parameters:
Error inflating XML: Setter for field "[...]" does not exist.
I've…

Paul Lammertsma
- 37,593
- 16
- 136
- 187
3
votes
1 answer
How to paint different color of bar in androidplot bar chart?
1.My bar chart have one serie.
2.In serie has 10 value.
3.When chart is shown it's has 10 bar but all bar is same color
4.How to paint different color of bar?
I'm try to do this but it's not work
class MyBarRenderer extends…

user2955394
- 1,063
- 4
- 17
- 34
3
votes
3 answers
Android - LinearGradient multiple Colors in Java
I am trying to draw a gradient to the background of AndroidPlot, all I need is an Object of Paint.
So I would use this code:
int[] co = new int[]{Color.RED,Color.YELLOW,Color.GREEN,Color.YELLOW,Color.RED};
float[] coP = new…

Pommes9485
- 75
- 3
- 7
3
votes
3 answers
AndroidPlot - Remove domain values from GraphWidget
I have a plot setup like this:
aHistoryPlot = (XYPlot) findViewById(R.id.plot);
aHistoryPlot.setRangeBoundaries(0, 255, BoundaryMode.FIXED);
aHistoryPlot.setDomainBoundaries(0, HISTORY_SIZE, BoundaryMode.FIXED);
…

amp
- 11,754
- 18
- 77
- 133
3
votes
1 answer
AndroidPlot: How to render a chart in an AppWidget?
I'm trying to use AndroidPlot to draw a chart in a homescreen widget.
I know that in a normal app, it uses a custom view and from what I've seen (Android: AppWidget with custom view not working), the workaround is to render this as a bitmap in an…

daitienshi
- 181
- 1
- 3
- 11
3
votes
3 answers
Get the correct position of a point in AndroidPlot
I am trying to get the pixel position of a values in my AndroidPlot, but I can't get it to work. The idea is to place the cursor at the exact point showed on the plot, at specific terms. Did any of you encounter/solve a similar problem?…

gedemagt
- 657
- 1
- 9
- 22
3
votes
1 answer
AndroidPlot, setting different DomainValueFormats
I am trying to do the following for the x labels in my graph.
The first label should have format:
plot.getGraphWidget()
.setDomainValueFormat(new SimpleDateFormat("dd/MM/yyyy hh:mm:ss"));
All the other labels should only show minutes and…

taranaki
- 778
- 3
- 9
- 28
3
votes
1 answer
Custom points on graph using AndroidPlot
Anyone that has used the AndroidPlot library tell me how would I go about drawing custom points on a graph. So far I'm using LineAndPointRenderer class and settings lines to transparent.
I would like to at least change the size of the dot but if…

Daniel Ryan
- 6,976
- 5
- 45
- 62
2
votes
1 answer
X and Y axis labels are not shown using android widget
I want to use androidplot to show a plot inside an android widget. Actually, the main content of the widget is supposed to show the plot. My problem is that I don't see the x- and y- tic-labels at all. (I can set and see the overall range label like…

kartoffelsalat
- 116
- 2
- 7
2
votes
1 answer
AndroidPlot: XYPlot How to make Bars with rounded corners
I am working with AndroidPlot since about one year to display different Diagrams in my app.
Now I am working with BarCharts, the charts are finished but how can I make corners rounded?
I found some results for lines:
How to make line with rounded…

Franz
- 358
- 6
- 18
2
votes
2 answers
How to get XYPlot axis with OnTouchListener
I'm trying to get the axis of an XYPlot using a custom OnTouchListener:
mPlot.setOnTouchListener(new View.OnTouchListener(){
@Override
public boolean onTouch(View v, MotionEvent event) {
float touchX =…

kike
- 4,255
- 5
- 23
- 41
2
votes
1 answer
AndroidPlot 1.x change range label formatting
I'm trying to set the range value format (Y-axis) of my plot to not show any decimals. In versions prior to 1.x you could apparently set the format by using plot.setRangeValueFormat(new DecimalFormat("#")); but this method is not available in the…

Daan
- 147
- 15
2
votes
0 answers
androidplot zoom not working properly on all the devices
I am using line chart of androidplot library to show the statistics.
Problem: zoom functionality is working fine in high configuration devices but not working on samsung s4 and moto e.as i have tested.
Steps to produce the issue : extreme zoom on…

Gurpreet Kaur
- 434
- 1
- 4
- 16
2
votes
1 answer
Multiple y series on same chart androidplot
i have a requirement to plot a line chart over a candlestick chart.(see first image)
we can simply add line series over the candlestick chart. but if the data of line chart is large, it does not show the candlestick series clearly(see the second…

Gurpreet Kaur
- 434
- 1
- 4
- 16
2
votes
2 answers
AndroidPlot not honoring xml styling attributes?
I have just spent a large majority of the day trying to implement AndroidPlot into my existing app but have reached a point where I can not see what I am doing wrong.
I have done the simple line graph tutorial that is posted on the main page at…

Logic1
- 1,806
- 3
- 26
- 43