简体   繁体   English

如何保持条形图的宽度相同?

[英]How to keep the same width of Bar-chart?

I use MPAndroidChart draw the stick line. 我用MPAndroidChart画出了线条。 please look at the following image, I want to the two image bar-chart width is same, how can I do what? 请看下面的图片,我要两个图片的条形图宽度相同,我该怎么办?

screenshot_one screenshot_two screenshot_one screenshot_two

As of this library version, you can control the bar width with the following method: 从该库版本开始,您可以使用以下方法控制钢筋宽度:

BarData barData = new BarData(...);
barData.setBarWidth(1f); // adjust according to your need

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM