Androidplot - X-Axis labels cut off

前端 未结 1 1264
天命终不由人
天命终不由人 2020-12-21 04:58

I\'m creating a bar chart but have run into an issue with the x-axis labels being cut off on a tablet. Attached is the correct layout on a phone and the incorrect layout on

相关标签:
1条回答
  • 2020-12-21 05:26

    The problem appears to be insufficient space in the graph widgets bottom margin. If you add this to your plot's XML:

    androidPlot.graphWidget.marginBottom="100dp"
    

    Then the problem should go away. 100dp is probably overkill so you'll need to dial it in but you get the idea :)

    0 讨论(0)
提交回复
热议问题