to::weilairen(未来人)
public void setMaxBarWidth(double percent)
Sets the maximum bar width, which is specified as a percentage of the available space for all bars, and sends a RendererChangeEvent to all registered listeners.
Parameters:
percent - the percent (where 0.05 is five percent).
里面的参数是一个百分比,是你的X轴的长度的百分比!如:X轴长为100,而参数你设为:0.5的话,那么你的每根柱子的宽度最大只能为:100*0.5=50.