turn the pixel dimensions into CM for the chart