Implement compute_width
layer_bars: use width for continuous and categorical x