首页 文章

在achartengine android中显示条形图y轴的网格线

提问于
浏览
3

我'm using the achartengine in my android application, so i don'知道如何 show the gridlines for the y axis in the bar-chart . 有谁知道怎么做?

Bar chart grid lines for y axis image

谢谢你的帮助

克拉克

2 回答

  • 1

    您可以通过调用以下方式启用所有网格线:

    renderer.setShowGrid(true);
    

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

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

    但请注意,网格线沿图表标签呈现 .

  • 4

    丹给出的答案是正确的 .

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

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

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

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

相关问题