fixed possible type in width setter, added empty chart object to enable renderTo method