@Override
    public void onChartDataChanged() {
        super.onChartDataChanged();
        BubbleChartData data = dataProvider.getBubbleChartData();
        this.hasLabels = data.hasLabels();
        this.hasLabelsOnlyForSelected = data.hasLabelsOnlyForSelected();
        this.valueFormatter = data.getFormatter();

        onChartViewportChanged();
    }
Rect used for drawing bubbles with SHAPE_SQUARE.
hellocharts-library/src/lecho/lib/hellocharts/renderer/BubbleChartRenderer.java