Fixed the size of the chart. There is still problem when zooming in/out.