A powerful 🚀 Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, panning and animations.
Other
37.53k
stars
9.01k
forks
source link
Charts did not respect View's padding system #3329
And then I just want to set the view's padding inside.
But after I run in Android devices, it did not respect the paddings and still draw with whole width/height
As in source code of Chart
com.github.mikephil.charting.charts.Chart
Its onDraw() did not takes the padding left/top/right/bottom into consideration.
(Actually the whole file of Chart did not use it)
I take the example usage of com.github.mikephil.charting.charts.LineChart
And I follow the Getting Started to add my data https://github.com/PhilJay/MPAndroidChart/wiki/Getting-Started
And then I just want to set the view's padding inside. But after I run in Android devices, it did not respect the paddings and still draw with whole width/height
As in source code of Chart com.github.mikephil.charting.charts.Chart Its onDraw() did not takes the padding left/top/right/bottom into consideration. (Actually the whole file of Chart did not use it)