add dynamic scale calculated based on the data value for bar chart.