【问题标题】:Display the gridlines for y axis of bar-chart in achartengine android在achartengine android中显示条形图y轴的网格线
【发布时间】:2012-08-23 03:14:31
【问题描述】:

我在我的 android 应用程序中使用 achartengine,所以我不知道如何在条形图中显示 y 轴的网格线。有谁知道该怎么做?

Bar chart grid lines for y axis image

感谢您的帮助

克拉克

【问题讨论】:

    标签: android achartengine


    【解决方案1】:

    您可以通过调用使所有网格线显示:

    renderer.setShowGrid(true);
    

    或者您可以单独启用它们:

    renderer.setShowGridX(true);
    renderer.setShowGridY(true);
    

    但是,请注意网格线是沿着图表标签呈现的。

    【讨论】:

      【解决方案2】:

      Dan 给出的答案是正确的。

      您可以通过以下代码启用。

       renderer.setShowGrid(true);
       renderer.setShowGridX(true);
       renderer.setShowGridY(true);`
      

      您可以通过以下代码禁用网格

      renderer.setShow(false);
      renderer.setShowGridX(false);
      renderer.setShowGridY(false);
      

      【讨论】:

        猜你喜欢
        • 2016-03-13
        • 1970-01-01
        • 1970-01-01
        • 2012-09-25
        • 1970-01-01
        • 1970-01-01
        • 2014-02-02
        • 1970-01-01
        • 2017-09-19
        相关资源
        最近更新 更多