MPChart:x 轴无法完全显示日期

MPChart: x axis couldn't display date completely

我在使用MPChart时遇到问题: x轴无法显示第一个日期,谁能帮帮我?谢谢!

您可以使用图表中的 setAvoidFirstLastClipping(Boolean) 来避免第一个和最后一个标签被截断。

来自文档:

setAvoidFirstLastClipping(boolean enabled): If set to true, the chart will avoid that the first and last axis label entry in the x-axis "clip" off the edge of the chart or the screen.