use of lecho.lib.hellocharts.model.Viewport in project dobby-android by InceptAi.
the class RtGraphViewHolder method resetViewport.
public void resetViewport() {
// Reset viewport height range to (0,100)
final Viewport v = new Viewport(lineChartView.getMaximumViewport());
v.bottom = 0;
v.top = 100;
v.left = 0;
v.right = Math.max(MAX_XPOINTS, graphData.numPoints());
lineChartView.setMaximumViewport(v);
lineChartView.setCurrentViewport(v);
}