dynamic size for line chart (for embedding with variable width)