adding scaling of chart so that it fits nocely regardless of the data