@Override
    public float getZoomLevel() {
        Viewport maxViewport = getMaximumViewport();
        Viewport currentViewport = getCurrentViewport();

        return Math.max(maxViewport.width() / currentViewport.width(), maxViewport.height() / currentViewport.height());

    }
Abstract class for charts views.

@author Leszek Wach
hellocharts-library/src/lecho/lib/hellocharts/view/AbstractChartView.java