Questions tagged [androidplot]
An Android API for creating dynamic and static charts.
357
questions
0
votes
0
answers
13
views
XYPlot Android same x value, multiple y-values
I'm trying to create a plot using Kotlin and androidplot library. My source code is:
val domainLabels = arrayOf<Number>(1,2,3,6,7,8,9,10,13,14)
val series1Number = arrayOf<Number>(1,4,8,12,...
0
votes
0
answers
22
views
androidplot-core 1.5.9 aar library crashes plot activity
within build.gradle (:app) dependencies { implementations ... }
i was using
" implementation 'com.androidplot:androidplot-core:1.5.9' "
and everything worked fine
but instead i wanted to use
...
0
votes
0
answers
11
views
How to Make AndroidPlot Pan Correctly with a TimeAxis
I can implement panning all right on a plot where the x values are relatively small numbers.
PanZoom.attach(mPlot, PanZoom.Pan.HORIZONTAL, PanZoom.Zoom.NONE);
(I only want horizontal panning, no zoom....
1
vote
0
answers
36
views
androidplot x axis isn't scaling
With androidplot in android studio (kotlin), the x-axis (domain) doesn't work properly. It doesn't scale itself by integer X values. What am I missing here?
Scale error on X axis:
val aa1= arrayOf<...
0
votes
0
answers
34
views
Androidplot: String in domain label and hide range label
I'm using androidplot in an App and I'm running into troubles as most questions and answers on this topic are outdated.
As a start, we have the following example plot:
(Mostly taken from the Example ...
0
votes
0
answers
51
views
Android XYPlot control label locations so they may not align to start of data
I am using Android XYPLot to make a graph where the data naturally moves across the screen from the right to the left. I would like the data labels (and grid-lines) to move with the data, but I ...
0
votes
1
answer
73
views
Android XYPlot graph bottom label size change?
Android graphview load widget using androidplot library in build gradle
implementation "com.androidplot:androidplot-core:1.5.7"
Dynamicaally create chart using below code getresponse based ...
0
votes
0
answers
20
views
AndroidPlot - Is there a way to click and enlarge a graph
I have a simple XYPlot that I would like to be clicked on and enlarged. I see a lot of working examples for photos and ImageView's but since the thing I want to enlarge is not an image, I don't think ...
0
votes
0
answers
24
views
Is it possible to pan androidplot with vertical lines?
I already implement scroll/pan
panZoom = PanZoom.attach(plotView, PanZoom.Pan.HORIZONTAL, PanZoom.Zoom.NONE, PanZoom.ZoomLimit.MIN_TICKS)
But when I scroll graph to left vertical lines remains on ...
0
votes
0
answers
55
views
How can i plot a linechart using the data in textview and this data is being generated by a heart rate measurment instrument
As per now i have added values manually in this piece of code. But I need a graph according to the values I get from the instrument.This textview data is called from textview data in ...
0
votes
0
answers
32
views
Androidplot legend icon shows differently on different devices
I am using AndroidPlot in my project and am trying to figure out why the same code leads to a different legend design on two phones.
On one phone the legend shows the line inside a black box, which ...
1
vote
1
answer
38
views
How do I make an AndroidPlot XYPlot legend icon clickable?
I would like to be able to click/tap on a specific legend icon to change how the XYPlot is displayed. I'm aware of plot.getLegend(), but I don't see any member functions for accessing individual icons ...
1
vote
0
answers
114
views
How to customize XYPlot properties - add X & Y axis labels and change legend text size?
What I tried: I'm using XYPlot for my dynamic graph and it is working well. I tried to customize it inside my initplot() function. I tried using getLegendWidget(), getDomainLabelWidget() and ...
0
votes
1
answer
45
views
Add Custom Attributes to Existing View
I am using AndroidPlot since a while and found out that their are serveral settings, that cannot be set using xml.
Now during playing around with BindingAdapter, I created some Methodes to extend ...
0
votes
2
answers
217
views
How to get rid of issue 'Binary XML file line #8: Binary XML file line #8: Error inflating class com.androidplot.xy.XYPlot' when working with XYPlot
I'm trying to familiarize myself with android XYPlot, using android studio 3.5.
I have tested several examples first, and I'm ending up with the same error -
Caused by: android.view.InflateException:...
0
votes
1
answer
50
views
Androidplot - getSeriesSet() and other methods in newer AndroidPlot versions
I'm looking at this answer from another question and trying to test it out.
One problem I'm having is a couple of the methods seem to have changed in newer versions of Androidplot. For whatever ...
0
votes
1
answer
185
views
Androidplot - Positioning range labels inside plotting area
I'm trying to format range labels on my graph so they sit inside the plotting area to maximize my real estate.
The problem I have is I can't figure out how to position the range labels vertical ...
0
votes
1
answer
367
views
"Error inflating class com.androidplot.xy.XYPlot" when I try to inflate my graph Fragment
When I debug my android app and I try to open my graph fragment, my app crashes. I put the "androidplot-core-1.5.7.aar" library in my "libs" project folder and implement it in my "build.gradle" ...
1
vote
1
answer
27
views
How to know the height of XYGraphWidget in pixels when using AndroidPlot?
I’m using StepMode.INCREMENT_BY_PIXELS to create my plot for I need the grids to stay in the same size even on different Android devices, and it works quite well. However, I need to know the height ...
0
votes
1
answer
79
views
How to set major and minor grid lines using Androidplot?
I’m trying to implement the following chart using Androidplot, and I’m wondering how to set the major and minor grids as shown in the picture with Androidplot? Is it using setLinesPerRangeLabel to ...
0
votes
1
answer
59
views
How to fill area between 2 series in Androidplot?
I have 2 dynamic series that I keep updating and I want to fill the area between the 2 series with color (sort of like a moving window). This question has the solution for plain canvas, but I'd like ...
0
votes
1
answer
68
views
Androidplot migration from .6.0 to 1.5.6
I am migrating an androidplot project from .6.0 to 1.5.6 and can't seem to figure out what the new methods are for the following.
What is the new class for
import com.androidplot.xy.BarRenderer....
1
vote
1
answer
102
views
Androidplot - setting margins and paddings (adjusting labels)
I'm trying to adjust labels of X and Y axes. Sadly all solutions I could find are pretty deprecated, usage info doesnt provide this, and Api lacks of description.
My chart looks like this:
As you ...
1
vote
1
answer
79
views
Androidplot migrating from 0.6 to 1.5 missing API XYPlot.graphWidget.setGridPadding
I'm trying to migrate androidplot from API 0.6 to 1.5, and found all equivalent methods, except one, XYPlot.graphWidget.setGridPadding(float left, float top, float right, float bottom)
This was ...
0
votes
1
answer
284
views
Background rendering and UI display
My first attempt at AndroidPlot. The data I want to plot (and update every 5 seconds when a new data point arrives) comes from an ArrayBlockingQueue of up to 720 timestamped points. I have a class ...
0
votes
1
answer
64
views
Setter requires parameter of unsupported type: class com.androidplot.ui.widget.TextLabelWidget
I'm trying to adapt the QuickStart example to my app but so far I'm getting this error:
Error inflating XML (class com.androidplot.xy.XYPlot): Setter requires param of unsupported type: class com....
0
votes
0
answers
76
views
How to add/remove line series dynamically in androidplot?
I am using the androidplot for charts. I want to show/hide line series dynamically like the Scichartdoes where user can check or uncheck the legend and corresponding renderable line series will show ...
0
votes
1
answer
84
views
Androidplot - Format PointLabel (remove decimals) on Bar Graph
I have been searching for how to format the text (remove decimals) of point labels on Bar graph.
This is my code:
BarFormatter bf = new BarFormatter(Color.CYAN,Color.CYAN);
PointLabelFormatter ...
0
votes
1
answer
275
views
AndroidPlot: Is it possible to save and restore the zoom/pan state?
I use the androidplot control to visualize some values. How is it possible to save the zoom/pan state? What are the right properties that I have to use?
plot_pan_zoom = PanZoom.attach(plot, PanZoom....
-1
votes
1
answer
206
views
Make real time multi line graph with androidplot
I would like to know if it's possible to make a real time multiple line graph using androidplot, like this but with 2 lines.And if so if could provide how to do it.
Thanks
1
vote
1
answer
128
views
AndroidPlot get Y-Position of Line
I would like to place a TextLabelWidget above a specific line in android Plot.
Is there any way to connect it directly to a line or to calculate the exact Y-position of an line.
Get the correct ...
1
vote
1
answer
360
views
Androidplot chart is duplicating label values x-axis & y-axis
I am using androidplot to show a graph, the labels get repeated. i searched forums and stackoverflow haven't found any solution.
now i noticed, if arraysize for x-axis or y-axis is less than 10, the ...
1
vote
1
answer
126
views
Add 2nd Y Axis Caption, Mark line + Add line Caption
I got the following Problem,
I would like to :
add a second Axis Caption to my Android Plot on the right side
same Labels like right.(maybe)
mark a line with a color and some text
the violet line ...
1
vote
1
answer
112
views
AndroidPlot remains overlapping legend
Currently, I'm overlapping my plot and it shows as link
https://www.dropbox.com/s/yaktr3ew2h4s6i6/Screenshot%202018-03-08%2011.26.52.jpg?dl=0
I have read most of the threads with solutions, but my ...
1
vote
2
answers
111
views
How to center domain label below bar in a bar chart?
Currently, each bar's domain label appears below the left hand side of each bar, as pictured here:
Is there a way to position labels below each bar's center ?
0
votes
1
answer
128
views
How make a scalable zoom on axis boundary for a time series
I develop a graph to display a temperature in time.
I don't know how to make a scalable zoom time axis with android plot.
I'm using this function to set limit border but it take only number param :
I ...
0
votes
1
answer
220
views
How do I use AndroidPlot efficiently in a RecylerView?
I got the following Problem,
When using an AndroidPlot XYPlot inside a RecyclerView.
the AndroidPlot like this:
<com.androidplot.xy.XYPlot
android:id="@+id/mPlot"
style="@style/APDefacto.Light"
...
-3
votes
1
answer
2k
views
What is the recommended method to create a speed meter graph in Android? [closed]
I'd like to create a chart similar to this
I'm considering using Android's 2-D graphics API with the classes android.graphics.Canvas and android.graphics.Paint for doing that, using Canvas's method ...
0
votes
1
answer
60
views
Remove Space below AndroidPlot
I have found the following post during looking for a solution to remove space below my AndroidPlot.
How do I remove all space around a chart in AndroidPlot?
Widget gw = mPlot.getGraph();
Size ...
1
vote
1
answer
261
views
How to hide horizontal range lines on AndroidPlot's XYPlot?
I'd like to remove the horizontal lines from this XYPlot chart:
I've already tried doing this:
plot.getGraph().getGridBackgroundPaint().setColor(Color.TRANSPARENT);
and added this in the XYPlot's ...
0
votes
0
answers
42
views
AndroidPlot null pointer exception, Android Studio
I was given this error in the google play console:
java.lang.NullPointerException:
1. at com.androidplot.Plot$BufferedCanvas.recycle (Plot.java:225)
2. at com.androidplot.Plot$1.run (Plot....
0
votes
2
answers
337
views
Recycling View Android Plot becomes gray after Scrolling
I got the following Problem.
When Including Android-XYPlot into Recycle-View, the Plots are not displayed after Scrolling Elements out of the Screen.
It seems to me if Androidplot needs to be ...
0
votes
1
answer
132
views
How to rotate a text value on a graph
I have a graph built using androidplot. I need to see each value horizontally (rotate 90 degrees). In the screenshot I showed what I mean. How to do it?
1
vote
2
answers
44
views
AndroidPlot, what is the biggest value we can put into plot?
I have a program on micro-controller (uC) which send data in intmax_t format (my goal is to send 19 bytes). I'm receiving on my Android app value which is send from uC (I'm sending data through ...
2
votes
1
answer
636
views
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....
0
votes
1
answer
127
views
Remove Margin AndroidPlot
I'm trying to remove the margins of my Plot on Android. I've implemented AndroidPlot 1.5.1 Library.
That's my xml-Code
<com.androidplot.xy.XYPlot
style="@style/APDefacto.Dark"
...
2
votes
1
answer
271
views
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 ...
0
votes
1
answer
83
views
When I use Androidplot in my Fragment it can not read values from line_point_formatter_with_labels.xml
I am trying to use the example from this link
I did small amendment to the code and I am using a fragment instead of activity like in the example code. Now, I am having issues with the ...
0
votes
1
answer
428
views
AndroidPlot: Change label size
I am trying to draw custom text in the range label but I can't seem to figure out how I can set a custom size. I would like to measure my set of label items, and fix the label area to be large enough ...
0
votes
0
answers
51
views
Androidplot Pie chart ontouch not working properly
My code:
public class ChartPieDemoActivity extends AppCompatActivity
{
PieChart chartPie;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState)...