Fit to parent option

If the width is zero or less we fit the chart to the size of the parent