Search code examples
androidandroid-graphview

How can i set axis unit label?


I'm using android graphview 3.1.1. I am trying to set an axis label, a label identifying what the axis is.

The only thing I've found close to this in Android GraphView is setting individual tick-mark labels as withgraphView.setHorizontalLabels(horlabels). Is it possible to set the entire label?

Example here, the axis labels are Month and Weight in Kg. enter image description here


Solution

  • there is no build-in feature for that, but you can achieve this by nesting the GraphView-View in layouts with TextViews