add some auto adjustments on drawing chart