hellocharts-android icon indicating copy to clipboard operation
hellocharts-android copied to clipboard

The bubble can not change radius

Open jeissie opened this issue 8 years ago • 2 comments

When i use this method

setViewportCalculationEnabled(false)

in bubbleChart。And resetBubbleViewport like this

private void resetBubbleViewport() {
        final Viewport v = new Viewport(columnChart.getMaximumViewport());
        v.bottom = 0;
        v.top = endYNum + 20;
        v.left = -2;
        v.right = (float) BUBBLES_NUM + 2;
        bubbleChart.setMaximumViewport(v);
        bubbleChart.setCurrentViewport(v);
}

bubbles can not change radius. Every bubble only with default radius, can not change with Z order.

But when i

setViewportCalculationEnabled(true),

every thing is ok.

How can bubble change radius by Z order at the same time setViewportCalculationEnabled(false) ???

jeissie avatar Mar 29 '17 13:03 jeissie

I'm having the same problem. The changes in x and y values are displayed as expected but the change in the z value isn't displaying. The bubble radius remains the same.

Sammy-T avatar Jul 02 '17 20:07 Sammy-T

this worked for me: tune bubbleScale field of your BubbleChartData , where you set your data (values) in chart, somewhere such as:

bubbleChartData = BubbleChartData(values)

you must tune bubbleChartData.bubbleScale , for example:

bubbleChartData.bubbleScale= 0.2f

miladce avatar Mar 28 '19 14:03 miladce