user714403
user714403

Reputation: 572

Bigger points in AndroidPlot

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?

Upvotes: 0

Views: 641

Answers (1)

Nick
Nick

Reputation: 8317

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"

Upvotes: 2

Related Questions