Make the chart frontend more beautiful and calculate the resolution