如何prevent图使用achartengine覆盖previous情节 [英] how to prevent the graph from overwriting the previous plot using achartengine

查看:188
本文介绍了如何prevent图使用achartengine覆盖previous情节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已积从第一重绘图形一旦它到达端。现在我的问题是,被覆盖的图形。在previous情节仍然是这样。那么,我应该如何清除previous剧情后重绘?而通过清除我不应该松动previous数据。它应该保持这样,当我scroll.Can有人帮助我请?

I have made the plot to repaint the graph from the first once it reaches end. Now my problem is the graph gets overwritten. The previous plot remains as such. So, how should i repaint after clearing the previous plot? And by clearing i should not loose the previous data. It should remain as such when i scroll.Can someone help me with this pls?

推荐答案

我会尽量回答我明白了问题:

I will try to answer the questions I understood:


  • 您可以从previous系列清除数据,通过删除

  • 您可以通过使用控制可视面积 renderer.setXAxisMin() renderer.setXAxisMax()

  • 当你想送回到开始光标,你可以创建一个新的系列,并开始将数据添加到这个系列

  • 您可以隐藏的传说,如果你不通过调用需要的 renderer.setShowLegend(假)

  • You can clear data from the previous series, by removing it
  • You can control the visible area by using renderer.setXAxisMin() and renderer.setXAxisMax()
  • When you want the cursor sent back to the beginning, you can create a new series and start adding data to this series
  • You can hide the legend, if you don't need it by calling renderer.setShowLegend(false)

这些变化将调用后在屏幕上看到 chartView.repaint()

The changes will be visible on the screen after calling chartView.repaint().

这篇关于如何prevent图使用achartengine覆盖previous情节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆