【发布时间】:2015-10-22 11:50:20
【问题描述】:
我正在使用 MPAndroidChart 创建一些折线图。由于数据太多,图表不够清晰,需要点击和缩放。
有没有办法设置要显示的 x-xalues 的最大值(例如最后 10 个)并通过滚动显示其他的?
我没有在文档中找到任何内容。我只找到了
setVisibleXRangeMaximum(float maxXRange): Sets the size of the area (range on the x-axis) that should be maximum visible at once. If this is e.g. set to 10, no more than 10 values on the x-axis can be viewed at once without scrolling.
正如我所注意到的,该功能不适用于折线图。
【问题讨论】: