add options for chart width and height, fall back to element dimensions