Search code examples
android-graphview

Set GraphView column width


I'm trying to use the GraphView library. I'm finding it disturbingly difficult to get the same size on all columns with static labels on these columns. The columns to the far right and far left are are just half visible.

I've been trying for so long now, please help :)


Solution

  • yes this happens when the viewport is exactly as big as the data. the bars are centered and so the left side of the first and the right side of the last bar will be invisible.

    you could set a manual x-viewport which is a little bigger then the data. then you will see it complete