如何将 MPAndroid 图表中的 XAxis 拉伸到屏幕边缘?

How to stretch XAxis in MPAndroid chart to the edge of screen?

我想拉伸底轴以匹配 MPAndroid 图表中的屏幕宽度。有什么办法吗?

GlassWire 是如何构建出这样漂亮的图表的?

  1. 删除图表中的偏移量。

    chart.setViewPortOffsets(0f, 0f, 0f, 0f);
    
  2. 玻璃丝

必须检查用于 GlassWire 的库。我尝试在应用程序中查看,我无法从应用程序中看到开源。 或者您必须为 MPChart

制作自定义视图