Added a maxWidth option for the chart