Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我实现了一个动态图表,可以实时绘制 wifi 从微控制器发送的数据。我正在尝试及时回滚,但我不知道如何做到这一点。你能帮助我吗?谢谢
您首先需要以这种方式设置可见范围:
renderer.setXAxisMin(minValue); renderer.setXAxisMax(maxValue);
然后,在图形视图上调用 repaint:
chartView.repaint();