Search in sources :

Example 16 with Viewport

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);
}
Also used : Viewport(lecho.lib.hellocharts.model.Viewport)

Aggregations

Viewport (lecho.lib.hellocharts.model.Viewport)16 Rect (android.graphics.Rect)4 Paint (android.graphics.Paint)2 ZoomType (lecho.lib.hellocharts.gesture.ZoomType)1 AxisValue (lecho.lib.hellocharts.model.AxisValue)1