@Override
    public void onChartSizeChanged() {
        final ChartComputator computator = chart.getChartComputator();
        Rect contentRect = computator.getContentRectMinusAllMargins();
        if (contentRect.width() < contentRect.height()) {
            isBubbleScaledByX = true;
        } else {
            isBubbleScaledByX = false;
        }
    }
Rect used for drawing bubbles with SHAPE_SQUARE.
hellocharts-library/src/lecho/lib/hellocharts/renderer/BubbleChartRenderer.java