Added a "Fit to Parent" option

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