【问题标题】:Achartengine: 1:graph artifact 2: x-axis labelingAchartengine: 1:graph artifact 2: x-axis labeling
【发布时间】:2013-06-10 10:15:37
【问题描述】:

1: 我使用“achartengine”作为折线图。当我在屏幕上单击几次时,我得到一个神器(见图)。它就像我放在图表右侧的折线图的副本。当我在屏幕上再次单击几次时它会消失。但是,有谁知道如何避免这种情况。

2: 是否可以选择为自动 x 轴标签设置比例因子?我想保留当前的自动标签(我不断获取数据)并将其除以 10。

【问题讨论】:

    标签: android achartengine artifact


    【解决方案1】:
    1. renderer.setInScroll(true);
    2. renderer.setXLabels(someValue);

    【讨论】:

    • 谢谢。 2. 的解决方案是:renderer.setXLabels(0); if ((plotindex % 10) == 0){ xlabel = String.valueOf(MainActivity.plotindex/10); renderer.addXTextLabel(plotindex, xlabel); }
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多