How to increase the size of the MPAndoid Chart?

I want to increase the size of the MPAndroid radar chart. I noticed that the size increases gradually when I increase the size of the chart itself, but I want the area to be the same as the size of the chart. enter image description here

After adding the following code:

mChart.setScaleY(1.2f);
mChart.setScaleX(1.2f);

he is shifting

enter image description here

+4
source share
1 answer

I think we can hack this a bit. I have never worked on a radar map, but if it supports scaling, we can increase it when we create it in accordance with our requirements. Again, you should check this out, I'm not sure if this will work. This is just an idea. If you did it your own way, please let me know.

Scaling (software)

zoomIn(): 1.4f, .

zoomOut(): 0.7f, .

zoom (float scaleX, float scaleY, float x, float y): . x y - ( ) . , 1f = .

zoom (float scaleX, float scaleY, float xValue, float yValue, AxisDependency): . xValue yValue ( ) . , 1f = .

+2

Source: https://habr.com/ru/post/1688658/


All Articles