Fixing ChartWrapper to works with new chart script.