0

Follows up to Custom points on graph using AndroidPlot

We are trying to make the points on a graph (A SimpleXYPlot from AndroidPlot) larger so that the graph can be read more easily. It doesn't seem like there's a simple setting for this, and the answer in the question above involves making a custom renderer, which seems like overkill.

Is there an easier way to do this?

Community
  • 1
  • 1
user714403
  • 572
  • 2
  • 7
  • 15

1 Answers1

2

You can control the size by setting the stroke width of your LineAndPointFormatter's vertex paint.

Programmatically:

formatter.getVertexPaint().setStrokeWidth(PixelUtils.dpToPix(20));

via XML (using Configurator):

vertexPaint.strokeWidth="20dp"
Nick
  • 8,181
  • 4
  • 38
  • 63