Questions tagged [androidplot]

An Android API for creating dynamic and static charts.

Filter by
Sorted by
Tagged with
0 votes
1 answer
75 views

How to make two androidplot, each one take 50% of the screen?

I'm trying to make two androidplot.xy.XYPlot each one takes 50% of the screen. I try to use android:weightSum. I put each androidplot.xy.XYPlot inside an LinearLayout, each take half the weight but ...
Tiến Nguyễn Minh's user avatar
0 votes
0 answers
3 views

Plot onto a pdf canvas

My app uses AndroidPlot to generate charts based on data users entered, users can also create PDF files from that data to share. Now, I'd like these PDF documents to not only show the raw data but ...
TZ04's user avatar
  • 145
0 votes
1 answer
201 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,...
Dimitris Dimitriadis's user avatar
1 vote
0 answers
40 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....
Kenneth Evans's user avatar
1 vote
0 answers
74 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<...
user30878's user avatar
0 votes
1 answer
178 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 ...
Bhuvaneshwaran Vellingiri's user avatar
0 votes
0 answers
83 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 ...
rahul's user avatar
  • 1
0 votes
0 answers
56 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 ...
TZ04's user avatar
  • 145
1 vote
1 answer
59 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 ...
AsparagusFactory's user avatar
1 vote
0 answers
195 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 ...
Sachz's user avatar
  • 391
0 votes
1 answer
106 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 ...
Franz's user avatar
  • 378
0 votes
2 answers
263 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:...
Sachz's user avatar
  • 391
0 votes
1 answer
71 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 ...
Jameson's user avatar
  • 190
0 votes
1 answer
236 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 ...
Jameson's user avatar
  • 190
0 votes
1 answer
499 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" ...
Malo's user avatar
  • 3
1 vote
1 answer
29 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 ...
Alison's user avatar
  • 431
0 votes
1 answer
104 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 ...
Alison's user avatar
  • 431
0 votes
1 answer
71 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 ...
Jei's user avatar
  • 11
1 vote
1 answer
95 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....
Kris Armstrong's user avatar
1 vote
1 answer
135 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 ...
vasyl's user avatar
  • 105
1 vote
1 answer
94 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 ...
Bruno Coelho's user avatar
0 votes
1 answer
507 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 ...
Robert Lewis's user avatar
  • 1,867
0 votes
1 answer
69 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....
Robert Lewis's user avatar
  • 1,867
0 votes
0 answers
86 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 ...
Dinesh Sheoran's user avatar
0 votes
1 answer
127 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 ...
Jemshid's user avatar
  • 15
0 votes
1 answer
345 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....
ReNa2019's user avatar
-1 votes
1 answer
292 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
daniel moreira's user avatar
1 vote
1 answer
159 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 ...
Franz's user avatar
  • 378
1 vote
1 answer
454 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 ...
Amir Dora.'s user avatar
  • 2,700
1 vote
1 answer
137 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 ...
Franz's user avatar
  • 378
1 vote
1 answer
147 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 ...
Oli's user avatar
  • 19
1 vote
2 answers
145 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 ?
matdev's user avatar
  • 4,187
0 votes
1 answer
159 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 ...
Martin Massol's user avatar
0 votes
1 answer
251 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" ...
Franz's user avatar
  • 378
-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 ...
matdev's user avatar
  • 4,187
0 votes
1 answer
68 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 ...
Franz's user avatar
  • 378
1 vote
1 answer
328 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 ...
matdev's user avatar
  • 4,187
0 votes
0 answers
52 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....
Samuel Peak's user avatar
0 votes
2 answers
395 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 ...
Franz's user avatar
  • 378
0 votes
1 answer
170 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?
Максим Фомичёв's user avatar
1 vote
2 answers
49 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 ...
chebad's user avatar
  • 939
2 votes
1 answer
778 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....
kartoffelsalat's user avatar
0 votes
1 answer
153 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" ...
LongDong1234's user avatar
2 votes
1 answer
310 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 ...
Franz's user avatar
  • 378
0 votes
1 answer
91 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 ...
Galkin's user avatar
  • 813
0 votes
1 answer
572 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 ...
gnichola's user avatar
  • 189
0 votes
0 answers
52 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)...
windaddict10's user avatar
1 vote
1 answer
329 views

AndroidPlot Logarithmic Axis?

I'm currently using AndroidPlot to display a dynamic XY plot. The Python script that usually displays this data also includes the ability to graph data with a logarithmic scale using Matplotlib. Is it ...
Lillian H's user avatar
0 votes
1 answer
41 views

AndroidPlot PieChart return null Segment on TouchEvent

I'm using PieChart Demo the difference is the segments are loaded dynamically like snippet below: public Segment[] segments; segments = new Segment[dataList.size()]; int i=0; for (...
Petryx's user avatar
  • 48
1 vote
1 answer
2k views

How to add legend for Pie chart in Android plot?

I am using Android Plot(http://androidplot.com/) library to draw a Pie chart and Pie chart draw is fine but I want legend and its customisation as shown in attached image so please guide me to do same ...
Hitesh Bhalala's user avatar

1
2 3 4 5
8