Questions tagged [androidplot]

An Android API for creating dynamic and static charts.

352 questions
2
votes
3 answers

AndroidPlot - Show Vertical Domain labels

I have about 12 domain labels in single graph. They overlap one another. I am not able to change their orientation. Please suggest a solution which will work with Android v2.2 and beyond.
Niket Singh
  • 159
  • 12
2
votes
1 answer

Plot not shown correctly (Androidplot lib)

I implemented a plot using androidplot. Here are some snippets: .xml
alex
  • 10,900
  • 15
  • 70
  • 100
2
votes
1 answer

Androidplot: create Timeline

Short Question: How can I set the X Axis of a Androidplot to Calendar (Date&Time) Elements? for(int i=1; i
Arian
  • 3,183
  • 5
  • 30
  • 58
2
votes
1 answer

androidplot: multiple y axes on the same graph

I am trying to display two sets of data on the same graph using androidplot; however, the data sets have very different scales. Whilst I could do some kind of normalisation of the data sets to make them compatible, I would rather plot them on…
1
vote
1 answer

AndroidPlot in java android

I have tried the dynamic XY plot AndroidPlot and it is working great but I have one question. I am using the plot in order to display Gradiac plot of a patient. What parameters do I have to change in order the plot to be displaying exactly as the…
prokopis
  • 575
  • 3
  • 7
  • 18
1
vote
0 answers

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.) The same code does not work if the x values…
Kenneth Evans
  • 2,179
  • 19
  • 26
1
vote
0 answers

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(20,20,40,40) val adom=…
user30878
  • 11
  • 5
1
vote
1 answer

setting graph on refreshing activity

Following code draw the graph as shown in the figure public class MyActivity extends Activity { Prefs myprefs = null; private XYPlot mySimpleXYPlot; Number[] series1Numbers=new Number[10]; Number[]…
user667340
  • 531
  • 2
  • 10
  • 21
1
vote
1 answer

android chart library -- androidplot onclick problem

I am trying to use the library "androidplot". Does it supply onclicklistener? If I put the code in oncreate(), it will work. but if I put into onclik(), it won't work. Could someone tell me why? This is XML file:
SPG
  • 6,109
  • 14
  • 48
  • 79
1
vote
1 answer

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 within the legend.I also checked out…
1
vote
0 answers

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 getRangeLabelWidget() functions ( shown below ). What I'm…
Sachz
  • 391
  • 5
  • 21
1
vote
1 answer

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 in pixels of the y-axis of the plot, so that I can…
Alison
  • 431
  • 6
  • 19
1
vote
1 answer

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.BarWidthStyle; In addition, what are the new methods…
Kris Armstrong
  • 95
  • 1
  • 1
  • 7
1
vote
1 answer

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 can see contents of plot and labels interfere.…
vasyl
  • 105
  • 1
  • 10
1
vote
1 answer

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 removed from version 0.9.8 to 1.0.0, in this commit. I…
Bruno Coelho
  • 926
  • 13
  • 25