set custom dimensions on element
determine width based on different x values of all elements in data